pub struct Rng { /* private fields */ }Expand description
Minimal seeded pseudo-random number generator.
Uses xorshift64: no heap allocations, no platform-specific dependencies,
and produces identical output on wasm32-wasip2 and x86_64.
NOT cryptographically secure — only for reproducible synthetic data.
Implementations§
Auto Trait Implementations§
impl Freeze for Rng
impl RefUnwindSafe for Rng
impl Send for Rng
impl Sync for Rng
impl Unpin for Rng
impl UnsafeUnpin for Rng
impl UnwindSafe for Rng
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