Function rerun::external::eframe::egui::ahash::random_state::set_random_source

pub fn set_random_source(
    source: impl RandomSource + Send + Sync + 'static
) -> Result<(), bool>
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).