chore: fix comment for RandIntBetween function (#15294)

This commit is contained in:
_ksco 2023-03-07 22:17:03 +08:00 committed by GitHub
parent c33cb83cc8
commit a148bc8953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {