pub struct StdRng;Available on crate feature
std only.Expand description
The operating system’s entropy source.
Reads /dev/urandom, which on every platform this module builds for is a
cryptographically secure generator seeded by the kernel. A short read is an error, not
a partially-filled buffer: a nonce that is half predictable is not a nonce.
Trait Implementations§
impl Copy for StdRng
Auto Trait Implementations§
impl Forget for StdRng
impl Freeze for StdRng
impl Move for StdRng
impl RefUnwindSafe for StdRng
impl Send for StdRng
impl Sync for StdRng
impl Unpin for StdRng
impl UnsafeUnpin for StdRng
impl UnwindSafe for StdRng
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