Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomBytes ¶
RandomBytes generates a slice of `n` random bytes using crypto/rand. Returns an error if random byte generation fails.
func RandomInt ¶
RandomInt returns a cryptographically secure random integer between `min` and `max`. Returns an error if min >= max.
func RandomString ¶
RandomString generates a random alphanumeric string of length `n`. It uses crypto/rand for cryptographically secure randomness.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.