logo
pub trait Random: Sized {
    fn random(rng: impl CryptoRng + RngCore) -> Self;
}
Available on crate feature rand_core only.
Expand description

Random number generation support.

Required Methods

Generate a cryptographically secure random value.

Implementors