pub trait Random: Sized {
    // Required method
    fn random(rng: &mut impl CryptoRngCore) -> Self;
}
Expand description

Random number generation support.

Required Methods§

fn random(rng: &mut impl CryptoRngCore) -> Self

Generate a cryptographically secure random value.

Implementors§

§

impl Random for Limb

§

impl<MOD, const LIMBS: usize> Random for Residue<MOD, LIMBS>where MOD: ResidueParams<LIMBS>,

§

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

§

impl<T> Random for Wrapping<T>where T: Random,

§

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