//
pkg.gl
Category
github.com/TheThingsNetwork/go-utils
pseudorandom
package
0.0.0-20200807125606-b3493662e4bf
Repository:
https://github.com/thethingsnetwork/go-utils.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
12
Files
43 SLOC
#
Functions
Bytes
Bytes generates a random byte slice of length n.
FillBytes
FillBytes fills the byte slice with random bytes.
Intn
Intn returns random int with max n.
New
New returns a new Random, in most cases you can also just use the global funcs.
String
String returns random string of length n.
#
Structs
TTNRandom
TTNRandom is used as a wrapper around math/rand.