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

Available on crate feature rand_core only.
source§

impl<MOD, const LIMBS: usize> Random for ConstMontyForm<MOD, LIMBS>
where MOD: ConstMontyParams<LIMBS>,

Available on crate feature rand_core only.
source§

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

Available on crate feature rand_core only.
source§

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

Available on crate feature rand_core only.
source§

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

Available on crate feature rand_core only.
source§

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

Available on crate feature rand_core only.