From 8cd85d49b1432d0952395aa85282b9c1a8cb8d24 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Wed, 23 Aug 2023 12:23:13 +0200 Subject: [PATCH] Update health_test.go --- kademlia/health_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }