Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RandGenerator ¶
RandGenerator is a structure that generates pseudo-random values from a `rand.Source`.
func NewRandomGenerator ¶
func NewRandomGenerator(seed int64) *RandGenerator
NewRandomGenerator returns a new `*RandGenerator`.
func (*RandGenerator) GenerateBytes ¶
func (rg *RandGenerator) GenerateBytes(len int) []byte
GenerateBytes returns a random `[]byte` of size `len`.
NOTE: it's obvious but do not use for cryptography purposes.
Click to show internal directories.
Click to hide internal directories.