crypto_bigint

Trait Random

source
pub trait Random: Sized {
    // Required method
    fn random(rng: &mut impl CryptoRngCore) -> Self;
}
Available on crate feature rand_core only.
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 ConstMontyForm<MOD, LIMBS>
where MOD: ConstMontyParams<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 Odd<Uint<LIMBS>>

source§

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