Documentation ¶
Overview ¶
Package rand provide functions for securely generating random strings. It uses crypto/rand to securely generate random sequences of characters. It is adapted from https://gist.github.com/denisbrodbeck/635a644089868a51eccd6ae22b2eb800 to support multiple character sets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASCIIString ¶
ASCIIString returns a cryptographically secure random sequence of printable ASCII characters, excluding space.
func AlphaNumericString ¶
AlphaNumericString returns a cryptographically secure random sequence of alphanumeric characters.
func LowerAlphaNumericString ¶ added in v0.1.13
LowerAlphaNumericString returns a cryptographically secure random sequence of lower alphanumeric characters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.