Skip to main content

Module rand

Module rand 

Source

Modules§

distr

Structs§

CustomRng
Custom random number generator struct for backward compatibility

Functions§

fill_bytes
Fill the buffer with cryptographically secure random bytes from /dev/urandom. If unavailable (e.g. non-Unix sandbox), fall back to a system-time-seeded LCG generator.
random_alphanumeric
Generate a random alphanumeric string of the specified length.
rng