pub trait Random: Sized {
    // Required method
    fn random(rng: impl CryptoRng + RngCore) -> Self;
}
Expand description

Random number generation support.

Required Methods§

source

fn random(rng: impl CryptoRng + RngCore) -> Self

Generate a cryptographically secure random value.

Implementors§

source§

impl Random for Limb

source§

impl<T> Random for NonZero<T>where T: Random + Zero,

source§

impl<const LIMBS: usize> Random for UInt<LIMBS>