Documentation ¶
Overview ¶
Package rand combines crypto.rand and math.rand for more secure random number generation with reduced performance impact. The package keeps a pool of math generators, making it unlikely that two consecutive random numbers are generated by the same math generator. In addition, it reseeds the math generators periodically using a seed generated by a crypto generator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlphaNum32 ¶
AlphaNum32 generates a random string of the specified length. The string will include only uppercase letters and numbers A-V, 0-9.
func AlphaNum64 ¶
AlphaNum64 generates a random string of the specified length. The string will include only alphanumeric characters a-z, A-Z, 0-9.
Types ¶
Click to show internal directories.
Click to hide internal directories.