chore: fix comment for RandIntBetween function (#15294)
This commit is contained in:
parent
c33cb83cc8
commit
a148bc8953
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user