#[repr(C)]pub struct RngSeedGenerator { /* private fields */ }
Expand description
A deterministic generator for seeds (and other generators).
Given the same initial seed, the generator will output the same sequence of seeds.
Since the seed generator will be kept in a runtime handle, we need to wrap FastRand
in a Mutex to make it thread safe. Different to the FastRand
that we keep in a
thread local store, the expectation is that seed generation will not need to happen
very frequently, so the cost of the mutex should be minimal.
Implementations§
Trait Implementations§
Source§impl Debug for RngSeedGenerator
impl Debug for RngSeedGenerator
Auto Trait Implementations§
impl !Freeze for RngSeedGenerator
impl !RefUnwindSafe for RngSeedGenerator
impl Send for RngSeedGenerator
impl Sync for RngSeedGenerator
impl Unpin for RngSeedGenerator
impl UnwindSafe for RngSeedGenerator
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