utils

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandDurationBetween

func RandDurationBetween(r *rand.Rand, min, max int) time.Duration

func RandInt

func RandInt(n int) int64

func RandInt64

func RandInt64(r *rand.Rand, max int) int64

func RandIntBetween

func RandIntBetween(r *rand.Rand, min, max int) int

func RandIntBetweenWith0

func RandIntBetweenWith0(r *rand.Rand, min, max int64) int64

func RandIntWith0

func RandIntWith0(r *rand.Rand, max int) int

func RandPositiveInt

func RandPositiveInt(r *rand.Rand, max math.Int) (math.Int, error)

func RandPubKey

func RandPubKey() crypto.PubKey

func RandStringOfLength

func RandStringOfLength(n int) string

func RandSubsetCoins

func RandSubsetCoins(r *rand.Rand, coins sdk.Coins) sdk.Coins

func RandTimestamp

func RandTimestamp(r *rand.Rand) time.Time

func RandomAmount

func RandomAmount(r *rand.Rand, max math.Int) math.Int

func RandomBool

func RandomBool(r *rand.Rand) bool

func RandomDecAmount

func RandomDecAmount(r *rand.Rand, max sdk.Dec) sdk.Dec

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL