mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 06:53:46 +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)
|
valAddrs := randomAddresses(numVals)
|
||||||
|
|
||||||
for i := 0; i < numVals; i++ {
|
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
|
powerN := power.Int64() + 1
|
||||||
|
|
||||||
validators[i] = &valset.Validator{
|
validators[i] = &valset.Validator{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue