From 2fd85f6ec849a4ffed52a7273420fed790d961cb Mon Sep 17 00:00:00 2001 From: Evgeny Danienko <6655321@bk.ru> Date: Mon, 5 Sep 2022 12:47:59 +0400 Subject: [PATCH] the source of randomness --- consensus/bor/snapshot_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/bor/snapshot_test.go b/consensus/bor/snapshot_test.go index ee15add259..982388d6d9 100644 --- a/consensus/bor/snapshot_test.go +++ b/consensus/bor/snapshot_test.go @@ -133,7 +133,7 @@ func buildRandomValidatorSet(numVals int) []*valset.Validator { valAddrs := randomAddresses(numVals) for i := 0; i < numVals; i++ { - power, _ := rand.Int(nil, big.NewInt(99)) + power, _ := rand.Int(rand.Reader, big.NewInt(99)) powerN := power.Int64() + 1 validators[i] = &valset.Validator{