package randutil

Import Path
	github.com/pion/randutil (on go.dev)

Dependency Relation
	imports 6 packages, and imported by 9 packages

Involved Source Files crypto.go math.go
Package-Level Type Names (only one)
/* sort by: | */
MathRandomGenerator is a random generator for non-crypto usage. GenerateString returns ranom string using given set of runes. It can be used for generating unique ID to avoid name collision. Caution: DO NOT use this for cryptographic usage. Intn returns random integer within [0:n). Uint32 returns random 32-bit unsigned integer. Uint64 returns random 64-bit unsigned integer. MathRandomGenerator : math/rand/v2.Source func NewMathRandomGenerator() MathRandomGenerator
Package-Level Functions (total 3)
CryptoUint64 returns cryptographic random uint64.
GenerateCryptoRandomString generates a random string for cryptographic usage.
NewMathRandomGenerator creates new mathmatical random generator. Random generator is seeded by crypto random.