Function me3_framework::overlay::epaint::ahash::random_state::set_random_source
source · [−]Expand description
Provides an optional way to manually supply a source of randomness for Hasher keys.
The provided RandomSource will be used to be used as a source of randomness by RandomState to generate new states. If this method is not invoked the standard source of randomness is used as described in the Readme.
The source of randomness can only be set once, and must be set before the first RandomState is created.
If the source has already been specified Err
is returned with a bool
indicating if the set failed because
method was previously invoked (true) or if the default source is already being used (false).