Home
last modified time | relevance | path

Searched refs:next_u64 (Results 1 – 25 of 31) sorted by relevance

12

/external/rust/crates/rand_xorshift/tests/
Dmod.rs9 assert_eq!(rng1.next_u64(), 4325440999699518727); in test_xorshift_construction()
13 assert_eq!(rng1.next_u64(), 15614385950550801700); in test_xorshift_construction()
14 assert_eq!(rng2.next_u64(), 15614385950550801700); in test_xorshift_construction()
30 for i in results.iter_mut() { *i = rng.next_u64(); } in test_xorshift_true_values()
52 let a = rng.next_u64(); in test_xorshift_zero_seed()
53 let b = rng.next_u64(); in test_xorshift_zero_seed()
64 assert_eq!(rng1.next_u64(), rng2.next_u64()); in test_xorshift_clone()
87 assert_eq!(rng.next_u64(), deserialized.next_u64()); in test_xorshift_serde()
/external/rust/crates/rand_core/src/
Dos.rs57 fn next_u64(&mut self) -> u64 { in next_u64() method
75 let x = OsRng.next_u64(); in test_os_rng()
76 let y = OsRng.next_u64(); in test_os_rng()
84 assert!(rng.next_u64() != 0); in test_construction()
Dlib.rs155 fn next_u64(&mut self) -> u64; in next_u64() method
431 fn next_u64(&mut self) -> u64 { in next_u64() method
432 (**self).next_u64() in next_u64()
457 fn next_u64(&mut self) -> u64 { in next_u64() method
458 (**self).next_u64() in next_u64()
Dblock.rs197 fn next_u64(&mut self) -> u64 { in next_u64() function
373 fn next_u64(&mut self) -> u64 { in next_u64() function
472 (&mut a[4..12]).copy_from_slice(&rng1.next_u64().to_le_bytes()); in blockrng_next_u32_vs_next_u64()
478 (&mut b[8..]).copy_from_slice(&rng2.next_u64().to_le_bytes()); in blockrng_next_u32_vs_next_u64()
482 (&mut c[..8]).copy_from_slice(&rng3.next_u64().to_le_bytes()); in blockrng_next_u32_vs_next_u64()
522 (&mut a[4..12]).copy_from_slice(&rng1.next_u64().to_le_bytes()); in blockrng64_next_u32_vs_next_u64()
528 (&mut b[8..]).copy_from_slice(&rng2.next_u64().to_le_bytes()); in blockrng64_next_u32_vs_next_u64()
534 (&mut c[..8]).copy_from_slice(&rng3.next_u64().to_le_bytes()); in blockrng64_next_u32_vs_next_u64()
Dimpls.rs42 let chunk: [u8; 8] = rng.next_u64().to_le_bytes(); in fill_bytes_via_next()
47 let chunk: [u8; 8] = rng.next_u64().to_le_bytes(); in fill_bytes_via_next()
/external/rust/crates/rand/src/rngs/
Dstd.rs43 fn next_u64(&mut self) -> u64 { in next_u64() method
44 self.0.next_u64() in next_u64()
91 let x0 = rng0.next_u64(); in test_stdrng_construction()
94 let x1 = rng1.next_u64(); in test_stdrng_construction()
Dxoshiro256plusplus.rs66 (self.next_u64() >> 32) as u32 in next_u32()
70 fn next_u64(&mut self) -> u64 { in next_u64() method
119 assert_eq!(rng.next_u64(), e); in reference()
Dsmall.rs90 fn next_u64(&mut self) -> u64 { in next_u64() method
91 self.0.next_u64() in next_u64()
Dmock.rs51 self.next_u64() as u32 in next_u32()
55 fn next_u64(&mut self) -> u64 { in next_u64() method
Dthread.rs109 fn next_u64(&mut self) -> u64 { in next_u64() method
113 rng.next_u64() in next_u64()
Dxoshiro128plusplus.rs84 fn next_u64(&mut self) -> u64 { in next_u64() method
/external/rust/crates/num-bigint/benches/rng/
Dmod.rs16 self.next_u64() as u32 in next_u32()
19 fn next_u64(&mut self) -> u64 { in next_u64() method
29 let bytes = self.next_u64().to_le_bytes(); in fill_bytes()
/external/rust/crates/rand/src/rngs/adapter/
Dread.rs55 fn next_u64(&mut self) -> u64 { in next_u64() method
113 assert_eq!(rng.next_u64(), 1 << 56); in test_reader_rng_u64()
114 assert_eq!(rng.next_u64(), (2 << 56) + (3 << 32) + (4 << 8)); in test_reader_rng_u64()
115 assert_eq!(rng.next_u64(), 5); in test_reader_rng_u64()
Dreseeding.rs124 fn next_u64(&mut self) -> u64 { in next_u64() function
125 self.0.next_u64() in next_u64()
/external/crosvm/common/cros-fuzz/src/
Drand.rs43 fn next_u64(&mut self) -> u64 { in next_u64() method
101 assert_eq!(rng.next_u64(), val); in gen_u64()
102 assert_eq!(rng.next_u64(), 0); in gen_u64()
/external/rust/crates/rand/src/distributions/
Dinteger.rs45 rng.next_u64() in sample()
53 let x = u128::from(rng.next_u64()); in sample()
54 let y = u128::from(rng.next_u64()); in sample()
69 rng.next_u64() as usize in sample()
/external/rust/beto-rust/nearby/crypto/rand_core_05_adapter/src/
Dlib.rs44 fn next_u64(&mut self) -> u64 { in next_u64() method
45 self.rng.next_u64() in next_u64()
/external/rust/crates/rand_chacha/src/
Dchacha.rs170 fn next_u64(&mut self) -> u64 {
171 self.rng.next_u64()
513 rng2.next_u64(); in test_chacha_true_values_c()
516 rng2.next_u64(); in test_chacha_true_values_c()
592 assert_eq!(rng.next_u64(), clone.next_u64()); in test_chacha_clone_streams()
/external/rust/crates/oorandom/src/
Dlib.rs303 assert_eq!(r1.rand_u64(), r2.next_u64()); in test_rand64_vs_randomize()
304 assert_eq!(r1.rand_i64(), r2.next_u64() as i64); in test_rand64_vs_randomize()
314 assert_eq!(r1.rand_u64(), r2.next_u64()); in test_rand64_vs_randomize()
315 assert_eq!(r1.rand_i64(), r2.next_u64() as i64); in test_rand64_vs_randomize()
376 let i2 = r2.next_u64(); in test_float64()
/external/rust/beto-rust/nearby/presence/ldt_np_adv_ffi/src/
Dhandle_map.rs106 let mut handle: u64 = rng.next_u64(); in insert()
109 handle = rng.next_u64(); in insert()
/external/rust/beto-rust/nearby/crypto/crypto_provider_rustcrypto/src/
Dlib.rs109 fn next_u64(&mut self) -> u64 { in next_u64() method
110 self.0.next_u64() in next_u64()
Dtesting.rs41 fn next_u64(&mut self) -> u64 { in next_u64() method
/external/rust/beto-rust/nearby/crypto/crypto_provider/src/
Dlib.rs91 fn next_u64(&mut self) -> u64; in next_u64() method
108 fn next_u64(&mut self) -> u64 { in next_u64() method
/external/rust/beto-rust/nearby/crypto/crypto_provider_boringssl/src/
Dlib.rs74 fn next_u64(&mut self) -> u64 { in next_u64() method
/external/rust/beto-rust/nearby/crypto/crypto_provider_openssl/src/
Dlib.rs97 fn next_u64(&mut self) -> u64 { in next_u64() method

12