Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will panic when the system fails to provide enough secure random data.
func GenerateRandomString ¶
GenerateRandomString returns a URL-safe, base64 encoded securely generated random string. It will panic if the system fails to provide secure random data.
func ReadRandomBytes ¶
ReadRandomBytes is a helper function that reads random data into the provided []byte. Tt returns the number of random bytes read and an error if fewer bytes were read.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.