Trait crypto_bigint::Random

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

Random number generation support.

Required Methods§

source

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

Generate a cryptographically secure random value.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Random for Limb

source§

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

source§

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

source§

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

source§

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