From a148bc8953207831bdb3f791d1f0723eb31dfb45 Mon Sep 17 00:00:00 2001 From: _ksco Date: Tue, 7 Mar 2023 22:17:03 +0800 Subject: [PATCH] chore: fix comment for RandIntBetween function (#15294) --- types/simulation/rand_util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/simulation/rand_util.go b/types/simulation/rand_util.go index e5ec88fd70..9432a48d96 100644 --- a/types/simulation/rand_util.go +++ b/types/simulation/rand_util.go @@ -100,12 +100,12 @@ func RandTimestamp(r *rand.Rand) time.Time { return time.Unix(rtime, 0) } -// RandIntBetween returns a random int between two numbers inclusively. +// RandIntBetween returns a random int in the range [min, max) using a given source of randomness. func RandIntBetween(r *rand.Rand, min, max int) int { return r.Intn(max-min) + min } -// returns random subset of the provided coins +// RandSubsetCoins returns random subset of the provided coins // will return at least one coin unless coins argument is empty or malformed // i.e. 0 amt in coins func RandSubsetCoins(r *rand.Rand, coins sdk.Coins) sdk.Coins {