Documentation
¶
Overview ¶
Package randutil contains functions generate random sequences of runes or bytes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandBytes ¶
RandBytes generates random []byte specified length, rand is pseudo-random number generators, for security-sensitive work, see the RandCryptBytes with crypto/rand package. nolint:gosec
func RandBytesHex ¶
RandBytesHex generates random string specified length in hex format, rand is pseudo-random number generators, for security-sensitive work, see the RandCryptBytesHex with crypto/rand package.
func RandCryptBytes ¶
RandCryptBytes generates random []byte specified length, suitable for security-sensitive work. nolint:errcheck
func RandCryptBytesHex ¶
RandCryptBytesHex generates random string specified length in hex format, suitable for security-sensitive work.
func RandStringRunes ¶
RandStringRunes generates random string specified length. nolint:gosec
Types ¶
This section is empty.