#[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.
Returns a new generator from the provided seed.
Returns the next seed in the sequence.
Directly creates a generator using the next seed.
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more
Mutably dereferences the given pointer.
Read more
Drops the object pointed to by the given pointer.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.