Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRandReadBytesUnexpected = errors.New("read an unexpected number of random bytes")
Functions ¶
This section is empty.
Types ¶
type Random ¶
type Random struct {
// contains filtered or unexported fields
}
Random implements Randomer.
func (*Random) GenerateRandomAlphaNum ¶
GenerateRandomAlphaNum returns a string of random alphanumeric characters of a specified length.
func (*Random) GenerateRandomBytes ¶
GenerateRandomBytes generates n random bytes.
func (*Random) GenerateRandomInt ¶
GenerateRandomInt returns a random integer between 0 and n.
func (*Random) GenerateRandomInt63 ¶
GenerateRandomInt63 returns a random 63 bit positive integer.
func (*Random) GenerateRandomNum ¶
GenerateRandomNum returns a string of random numeric characters of a specified length.
Click to show internal directories.
Click to hide internal directories.