pub struct OsRng;Expand description
OS-backed cryptographic RNG reading from /dev/urandom on Unix.
Only available with the std feature. In no_std builds, callers
must supply their own CryptoRng implementation (typically
wrapping a hardware RNG on embedded targets).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OsRng
impl RefUnwindSafe for OsRng
impl Send for OsRng
impl Sync for OsRng
impl Unpin for OsRng
impl UnsafeUnpin for OsRng
impl UnwindSafe for OsRng
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more