Merge PR #5385: fix int overflow error for rand.Intn
This commit is contained in:
parent
96b384b269
commit
d58bf903f4
|
@ -81,7 +81,7 @@ func AppStateRandomizedFn(
|
|||
var initialStake, numInitiallyBonded int64
|
||||
appParams.GetOrGenerate(
|
||||
cdc, StakePerAccount, &initialStake, r,
|
||||
func(r *rand.Rand) { initialStake = int64(r.Intn(1e12)) },
|
||||
func(r *rand.Rand) { initialStake = r.Int63n(1e12) },
|
||||
)
|
||||
appParams.GetOrGenerate(
|
||||
cdc, InitiallyBondedValidators, &numInitiallyBonded, r,
|
||||
|
|
Loading…
Reference in New Issue