Home
last modified time | relevance | path

Searched refs:rng2 (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/rand_chacha/src/
Dchacha.rs288 let mut rng2 = ChaChaRng::from_rng(rng1).unwrap(); in test_chacha_construction() localVariable
289 assert_eq!(rng2.next_u32(), 1325750369); in test_chacha_construction()
376 let mut rng2 = ChaChaRng::from_seed(seed); in test_chacha_true_values_c() localVariable
377 rng2.set_word_pos(2 * 16); in test_chacha_true_values_c()
379 *i = rng2.next_u32(); in test_chacha_true_values_c()
382 assert_eq!(rng2.get_word_pos(), expected_end); in test_chacha_true_values_c()
386 rng2.fill_bytes(&mut buf[..]); in test_chacha_true_values_c()
387 assert_eq!(rng2.get_word_pos(), expected_end + 8); in test_chacha_true_values_c()
388 rng2.fill_bytes(&mut buf[0..25]); in test_chacha_true_values_c()
389 assert_eq!(rng2.get_word_pos(), expected_end + 15); in test_chacha_true_values_c()
[all …]
/external/rust/crates/rand_xorshift/tests/
Dmod.rs11 let mut rng2 = XorShiftRng::from_rng(&mut rng1).unwrap(); in test_xorshift_construction() localVariable
14 assert_eq!(rng2.next_u64(), 15614385950550801700); in test_xorshift_construction()
62 let mut rng2 = rng1.clone(); in test_xorshift_clone() localVariable
64 assert_eq!(rng1.next_u64(), rng2.next_u64()); in test_xorshift_clone()
/external/bc/src/
Drand.c264 BcRNGData *rng2; in bc_rand_seedZeroes() local
268 rng2 = bc_vec_item_rev(&r->v, idx); in bc_rand_seedZeroes()
270 if (BC_RAND_ZERO(rng2)) { in bc_rand_seedZeroes()
318 BcRNGData *rng2 = bc_vec_item_rev(&r->v, i); in bc_rand_propagate() local
319 go = BC_RAND_NOTMODIFIED(rng2); in bc_rand_propagate()
320 bc_rand_copy(rng2, rng); in bc_rand_propagate()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_cse_test.cc582 auto rng2 = builder.AddInstruction(HloInstruction::CreateRng( in TEST_F() local
587 constant1->shape(), HloOpcode::kAdd, rng1, rng2)); in TEST_F()
593 EXPECT_THAT(root, op::Add(rng1, rng2)); in TEST_F()
603 EXPECT_THAT(root, op::Add(rng1, rng2)); in TEST_F()
638 auto rng2 = builder.AddInstruction( in TEST_F() local
641 constant->shape(), HloOpcode::kAdd, rng1, rng2)); in TEST_F()
/external/rust/crates/rand/src/rngs/adapter/
Dreseeding.rs367 let mut rng2 = rng1.clone(); in test_clone_reseeding() localVariable
368 assert_eq!(first, rng2.gen::<u32>()); in test_clone_reseeding()