From f0b690ba6e22d06e13c5366195ab8e6c8c99b367 Mon Sep 17 00:00:00 2001 From: Nicolas Pinto Date: Fri, 17 May 2019 16:46:43 -0700 Subject: [PATCH] Merge PR #4366: Random Fuzzer fix: avoids VotingPeriod=0 --- x/simulation/params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/simulation/params.go b/x/simulation/params.go index 12eb8e5959..47b039af5c 100644 --- a/x/simulation/params.go +++ b/x/simulation/params.go @@ -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)