Searched refs:from_rng (Results 1 – 11 of 11) sorted by relevance
71 fn from_rng<R: RngCore>(rng: R) -> Result<Self, Error> { in from_rng() method72 Rng::from_rng(rng).map(StdRng) in from_rng()97 let mut rng1 = StdRng::from_rng(rng0).unwrap(); in test_stdrng_construction()
114 fn from_rng<R: RngCore>(rng: R) -> Result<Self, Error> { in from_rng() method115 Rng::from_rng(rng).map(SmallRng) in from_rng()
70 let r = Core::from_rng(OsRng).unwrap_or_else(|err|
251 fn from_rng<S: RngCore>(rng: S) -> Result<Self, Error> { in from_rng() method252 Ok(Self::new(R::from_rng(rng)?)) in from_rng()426 fn from_rng<S: RngCore>(rng: S) -> Result<Self, Error> { in from_rng() method427 Ok(Self::new(R::from_rng(rng)?)) in from_rng()
356 fn from_rng<R: RngCore>(mut rng: R) -> Result<Self, Error> { in from_rng() method
214 R::from_rng(&mut self.reseeder).map(|result| { in reseed()339 let rng = Core::from_rng(&mut zero).unwrap(); in test_reseeding()359 let rng = Core::from_rng(&mut zero).unwrap(); in test_clone_reseeding()
18 - Make XorShiftRng::from_rng portable by enforcing Endianness (#815)
11 let mut rng2 = XorShiftRng::from_rng(&mut rng1).unwrap(); in test_xorshift_construction()
101 fn from_rng<R: RngCore>(mut rng: R) -> Result<Self, Error> { in from_rng() method
288 let mut rng2 = ChaChaRng::from_rng(rng1).unwrap(); in test_chacha_construction()
135 - `SeedableRng::from_rng` is now expected to be value-stable (#815)