pub struct SeededRng { /* private fields */ }Expand description
A small, deterministic, WASM-safe PRNG (SplitMix64).
SplitMix64 is chosen for being tiny, allocation-free, and identical on every
target (no platform Rng, no Math.random), so a seed reproduces bit-for-bit
across native and WASM.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SeededRng
impl RefUnwindSafe for SeededRng
impl Send for SeededRng
impl Sync for SeededRng
impl Unpin for SeededRng
impl UnsafeUnpin for SeededRng
impl UnwindSafe for SeededRng
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