Documentation ¶
Overview ¶
Package rands contains utility functions for randomness.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HexString ¶
HexString returns a string of n cryptographically random lowercase hex characters.
That is, HexString(3) returns something like "0fc", containing 12 bits of randomness.
func IntN ¶ added in v1.68.0
IntN is like rand.IntN, but it is seeded on the stack and does not allocate or lock any RNG state.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.