Skip to main content

CryptoRng

Trait CryptoRng 

Source
pub trait CryptoRng: Rng<Error = Infallible> + TryCryptoRng { }
Expand description

A marker trait for securely unpredictable infallible RNGs

This is a convenient trait alias for TryCryptoRng<Error = Infallible>. It is equivalent to the trait sum Rng + TryCryptoRng.

Implementors§

Source§

impl<R> CryptoRng for R
where R: TryCryptoRng<Error = Infallible> + ?Sized,