diff --git a/simapp/state.go b/simapp/state.go index 22a4e53a63f0..8815784b0a60 100644 --- a/simapp/state.go +++ b/simapp/state.go @@ -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,