Trait RandomFromRng

Source
pub trait RandomFromRng {
    // Required method
    fn random_from_rng(csprng: &mut impl CryptoRngCore) -> Self;
}

Required Methods§

Source

fn random_from_rng(csprng: &mut impl CryptoRngCore) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RandomFromRng for [u8; 16]

Source§

fn random_from_rng(csprng: &mut impl CryptoRngCore) -> Self

Source§

impl RandomFromRng for [u8; 24]

Source§

fn random_from_rng(csprng: &mut impl CryptoRngCore) -> Self

Source§

impl RandomFromRng for [u8; 32]

Source§

fn random_from_rng(csprng: &mut impl CryptoRngCore) -> Self

Source§

impl RandomFromRng for [u8; 64]

Source§

fn random_from_rng(csprng: &mut impl CryptoRngCore) -> Self

Implementors§