Trait crypto_bigint::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§
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.