pub struct OsRandom;Expand description
Cryptographically secure default random source, backed by the operating
system CSPRNG via the getrandom crate.
This is the default behind the language crates’ word() / hangul() entry
points, mirroring the TypeScript default of crypto.getRandomValues. Use
SplitMix64 only for seeded, deterministic generation.
Implementations§
Trait Implementations§
impl Copy for OsRandom
Auto Trait Implementations§
impl Freeze for OsRandom
impl RefUnwindSafe for OsRandom
impl Send for OsRandom
impl Sync for OsRandom
impl Unpin for OsRandom
impl UnsafeUnpin for OsRandom
impl UnwindSafe for OsRandom
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