mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
the source of randomness
This commit is contained in:
parent
a4eb03eed1
commit
2fd85f6ec8
1 changed files with 1 additions and 1 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue