Home
last modified time | relevance | path

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

/external/rust/crates/rand/src/rngs/
Dstd.rs71 fn from_rng<R: RngCore>(rng: R) -> Result<Self, Error> { in from_rng() method
72 Rng::from_rng(rng).map(StdRng) in from_rng()
97 let mut rng1 = StdRng::from_rng(rng0).unwrap(); in test_stdrng_construction()
Dsmall.rs114 fn from_rng<R: RngCore>(rng: R) -> Result<Self, Error> { in from_rng() method
115 Rng::from_rng(rng).map(SmallRng) in from_rng()
Dthread.rs70 let r = Core::from_rng(OsRng).unwrap_or_else(|err|
/external/rust/crates/rand_core/src/
Dblock.rs251 fn from_rng<S: RngCore>(rng: S) -> Result<Self, Error> { in from_rng() method
252 Ok(Self::new(R::from_rng(rng)?)) in from_rng()
426 fn from_rng<S: RngCore>(rng: S) -> Result<Self, Error> { in from_rng() method
427 Ok(Self::new(R::from_rng(rng)?)) in from_rng()
Dlib.rs356 fn from_rng<R: RngCore>(mut rng: R) -> Result<Self, Error> { in from_rng() method
/external/rust/crates/rand/src/rngs/adapter/
Dreseeding.rs214 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()
/external/rust/crates/rand_xorshift/
DCHANGELOG.md18 - Make XorShiftRng::from_rng portable by enforcing Endianness (#815)
/external/rust/crates/rand_xorshift/tests/
Dmod.rs11 let mut rng2 = XorShiftRng::from_rng(&mut rng1).unwrap(); in test_xorshift_construction()
/external/rust/crates/rand_xorshift/src/
Dlib.rs101 fn from_rng<R: RngCore>(mut rng: R) -> Result<Self, Error> { in from_rng() method
/external/rust/crates/rand_chacha/src/
Dchacha.rs288 let mut rng2 = ChaChaRng::from_rng(rng1).unwrap(); in test_chacha_construction()
/external/rust/crates/rand/
DCHANGELOG.md135 - `SeedableRng::from_rng` is now expected to be value-stable (#815)