diff --git a/kademlia/health_test.go b/kademlia/health_test.go index d2086c7..fbc327d 100644 --- a/kademlia/health_test.go +++ b/kademlia/health_test.go @@ -1,6 +1,7 @@ package kademlia import ( + crand "crypto/rand" "math/rand" "testing" @@ -38,7 +39,7 @@ func randomTestTableHealthSubsetSamples(contactSize, knownSize int) *testTableHe func randomKey(size int) key.Key { k := make([]byte, size) - rand.Read(k) + crand.Read(k) return key.BytesKey(k) }