Skip to main content

SdkRng

Trait SdkRng 

Source
pub trait SdkRng:
    CryptoRng
    + Send
    + Sync { }
Expand description

Marker trait for random number generators usable within the Bitwarden SDK.

Supertrait of [rand::CryptoRng] (hence also [rand::Rng] / [rand::RngExt]) and additionally requires Send + Sync, so any SdkRng is a drop-in wherever the SDK or third-party crates expect a cryptographically secure, thread-safe RNG.

Implementors§

Source§

impl<T: CryptoRng + Send + Sync + ?Sized> SdkRng for T