Home
last modified time | relevance | path

Searched refs:DefaultRandomSource (Results 1 – 1 of 1) sorted by relevance

/external/rust/android-crates-io/crates/ahash/src/
Drandom_state.rs147 struct DefaultRandomSource { struct
151 impl DefaultRandomSource { implementation
152 fn new() -> DefaultRandomSource { in new()
153 DefaultRandomSource { in new()
159 const fn default() -> DefaultRandomSource { in default()
160 DefaultRandomSource { in default()
166 impl RandomSource for DefaultRandomSource { implementation
189 static RAND_SOURCE: DefaultRandomSource = DefaultRandomSource::default();
203 …x::new(Box::new(source))).map_err(|s| s.as_ref().type_id() != TypeId::of::<&DefaultRandomSource>())
208 RAND_SOURCE.get_or_init(|| Box::new(Box::new(DefaultRandomSource::new()))).as_ref()