Searched refs:DefaultRandomSource (Results 1 – 1 of 1) sorted by relevance
147 struct DefaultRandomSource { struct151 impl DefaultRandomSource { implementation152 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 { implementation189 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()