pub trait Random: Sized {
    // Required method
    fn random(rng: impl CryptoRng + RngCore) -> Self;
}
Expand description

Random number generation support.

Required Methods§

source

fn random(rng: impl CryptoRng + RngCore) -> Self

Generate a cryptographically secure random value.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Random for Limb

source§

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

source§

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