Skip to content

Commit

Permalink
Merge PR cosmos#4366: Random Fuzzer fix: avoids VotingPeriod=0
Browse files Browse the repository at this point in the history
  • Loading branch information
npinto authored and alexanderbez committed May 17, 2019
1 parent cef7880 commit f0b690b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/simulation/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var (
return sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, int64(RandIntBetween(r, 1, 1e3)))}
},
"VotingParams/VotingPeriod": func(r *rand.Rand) interface{} {
return time.Duration(r.Intn(2*172800)) * time.Second
return time.Duration(RandIntBetween(r, 1, 2*60*60*24*2)) * time.Second
},
"TallyParams/Quorum": func(r *rand.Rand) interface{} {
return sdk.NewDecWithPrec(334, 3)
Expand Down

0 comments on commit f0b690b

Please sign in to comment.