std::csrng
This module contains utilities for generating cryptographically-secure random numbers.
Functions
-
rand_bytes(n: i64) -> buf -
Returns a buffer containing
nrandom bytes from the operating system's source of cryptographically-secure random numbers. -
rand_i64() -> i64 -
Returns a random
i64value generated using the operating system's source of cryptographically-secure random numbers.