Home
last modified time | relevance | path

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

/external/rust/crates/rand_chacha/src/
Dchacha.rs166 fn next_u32(&mut self) -> u32 {
167 self.rng.next_u32()
286 assert_eq!(rng1.next_u32(), 137206642); in test_chacha_construction()
289 assert_eq!(rng2.next_u32(), 1325750369); in test_chacha_construction()
301 *i = rng.next_u32(); in test_chacha_true_values_a()
311 *i = rng.next_u32(); in test_chacha_true_values_a()
333 rng.next_u32(); in test_chacha_true_values_b()
338 *i = rng.next_u32(); in test_chacha_true_values_b()
367 rng1.next_u32(); in test_chacha_true_values_c()
370 *i = rng1.next_u32(); in test_chacha_true_values_c()
[all …]
/external/rust/crates/rand/src/rngs/adapter/
Dread.rs59 fn next_u32(&mut self) -> u32 { in next_u32() method
130 assert_eq!(rng.next_u32(), 1 << 24); in test_reader_rng_u32()
131 assert_eq!(rng.next_u32(), 2 << 16); in test_reader_rng_u32()
132 assert_eq!(rng.next_u32(), 3); in test_reader_rng_u32()
Dreseeding.rs113 fn next_u32(&mut self) -> u32 { in next_u32() function
114 self.0.next_u32() in next_u32()
/external/rust/crates/rand_core/src/
Dlib.rs143 fn next_u32(&mut self) -> u32; in next_u32() method
392 fn next_u32(&mut self) -> u32 { in next_u32() method
393 (**self).next_u32() in next_u32()
418 fn next_u32(&mut self) -> u32 { in next_u32() method
419 (**self).next_u32() in next_u32()
Dimpls.rs26 let x = u64::from(rng.next_u32()); in next_u64_via_u32()
27 let y = u64::from(rng.next_u32()); in next_u64_via_u32()
50 let chunk: [u8; 4] = rng.next_u32().to_le_bytes(); in fill_bytes_via_next()
Dos.rs53 fn next_u32(&mut self) -> u32 { in next_u32() method
Dblock.rs180 fn next_u32(&mut self) -> u32 { in next_u32() function
348 fn next_u32(&mut self) -> u32 { in next_u32() function
/external/rust/crates/oorandom/src/
Dlib.rs277 assert_eq!(r1.rand_u32(), r2.next_u32()); in test_rand32_vs_randomize()
278 assert_eq!(r1.rand_i32(), r2.next_u32() as i32); in test_rand32_vs_randomize()
288 assert_eq!(r1.rand_u32(), r2.next_u32()); in test_rand32_vs_randomize()
289 assert_eq!(r1.rand_i32(), r2.next_u32() as i32); in test_rand32_vs_randomize()
330 let i2 = r2.next_u32(); in test_float32()
463 assert_eq!(r1.rand_u32(), r2.next_u32()); in test_rand32_vs_rand()
473 assert_eq!(r1.rand_u32(), r2.next_u32()); in test_rand32_vs_rand()
/external/rust/crates/rand/src/rngs/
Dsmall.rs85 fn next_u32(&mut self) -> u32 { in next_u32() method
86 self.0.next_u32() in next_u32()
Dstd.rs42 fn next_u32(&mut self) -> u32 { in next_u32() method
43 self.0.next_u32() in next_u32()
Dthread.rs100 fn next_u32(&mut self) -> u32 { in next_u32() method
104 rng.next_u32() in next_u32()
Dxoshiro128plusplus.rs63 fn next_u32(&mut self) -> u32 { in next_u32() method
115 assert_eq!(rng.next_u32(), e); in reference()
Dmock.rs50 fn next_u32(&mut self) -> u32 { in next_u32() method
Dxoshiro256plusplus.rs63 fn next_u32(&mut self) -> u32 { in next_u32() method
/external/rust/crates/rand/src/distributions/
Dinteger.rs24 rng.next_u32() as u8 in sample()
31 rng.next_u32() as u16 in sample()
38 rng.next_u32() in sample()
64 rng.next_u32() as usize in sample()
Dother.rs96 let var = rng.next_u32() >> (32 - 6); in sample()
111 (rng.next_u32() as i32) < 0 in sample()
/external/rust/crates/rand/src/
Drng.rs462 assert_eq!(rng.next_u32(), x as u32); in test_fill()
549 r.next_u32(); in test_rng_trait_object()
561 r.next_u32(); in test_rng_boxed_trait()
/external/rust/crates/rand_xorshift/tests/
Dmod.rs23 for i in results.iter_mut() { *i = rng.next_u32(); } in test_xorshift_true_values()
/external/rust/crates/rand_xorshift/src/
Dlib.rs52 fn next_u32(&mut self) -> u32 { in next_u32() method
/external/rust/crates/rand/
DCHANGELOG.md30 - `ReadRng::next_u32` and `next_u64` now use little-Endian conversion instead
313 `next_u32`, `next_u64` and `fill_bytes` are now part of `RngCore`. (#265)
351 - `Isaac64Rng::next_u32` no longer throws away half the results. (#209)