Trait crypto_bigint::prelude::Random
source · pub trait Random: Sized {
// Required method
fn random(rng: &mut impl CryptoRngCore) -> Self;
}
Expand description
Random number generation support.
Required Methods§
sourcefn random(rng: &mut impl CryptoRngCore) -> Self
fn random(rng: &mut impl CryptoRngCore) -> Self
Generate a cryptographically secure random value.
Object Safety§
This trait is not object safe.
Implementors§
impl Random for Limb
Available on crate feature
rand_core
only.impl<MOD, const LIMBS: usize> Random for ConstMontyForm<MOD, LIMBS>where
MOD: ConstMontyParams<LIMBS>,
Available on crate feature
rand_core
only.impl<T> Random for NonZero<T>
Available on crate feature
rand_core
only.impl<T: Random> Random for Wrapping<T>
Available on crate feature
rand_core
only.impl<const LIMBS: usize> Random for Odd<Uint<LIMBS>>
Available on crate feature
rand_core
only.impl<const LIMBS: usize> Random for Uint<LIMBS>
Available on crate feature
rand_core
only.