Documentation ¶
Overview ¶
Package random provides some general purpose cryptographically pseudo-random utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidLen = errors.New("invalid length")
Functions ¶
func GetRandBase64Str ¶
GetRandBase64Str creates a cryptographically randomly generated set of bytes with the length of len which is returned as base64 encoded string.
func GetRandByteArray ¶
GetRandByteArray creates a cryptographically randomly generated set of bytes with the length of len.
func MustGetRandBase64Str ¶
MustGetRandBase64Str executes GetRandBase64Str and panics if an error was returned.
func MustGetRandByteArray ¶
MustGetRandByteArray executes GetRandByteArray and panics if an error was returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.