/external/rust/crates/oorandom/src/ |
D | lib.rs | 29 pub struct Rand32 { struct 34 impl Rand32 { impl 274 let mut r1 = Rand32::new(seed); in test_rand32_vs_randomize() 275 let mut r2 = PCG32::seed(seed, Rand32::DEFAULT_INC); in test_rand32_vs_randomize() 285 let mut r1 = Rand32::new_inc(seed, inc); in test_rand32_vs_randomize() 324 let mut r1 = Rand32::new(seed); in test_float32() 325 let mut r2 = PCG32::seed(seed, Rand32::DEFAULT_INC); in test_float32() 416 let mut r1 = Rand32::new(seed); in test_randrange32() 460 let mut r1 = Rand32::new(seed); in test_rand32_vs_rand() 461 let mut r2 = rand_pcg::Pcg32::new(seed, Rand32::DEFAULT_INC); in test_rand32_vs_rand() [all …]
|
/external/tensorflow/tensorflow/core/lib/random/ |
D | simple_philox.cc | 24 return ExactUniformInt<uint32>(n, [this]() { return Rand32(); }); in Uniform() 33 const int shift = Rand32() % (max_log + 1); in Skewed() 35 return Rand32() & mask; in Skewed()
|
D | simple_philox_test.cc | 50 if (gen1->Rand32() != gen2->Rand32()) { in DifferenceTest() 82 uint32 v = gen1.Rand32(); in TEST() 85 all.insert(gen2.Rand32()); in TEST()
|
D | weighted_picker.cc | 56 return r->Rand32() * n; in UnbiasedUniform() 59 return r->Rand32() & (n - 1); in UnbiasedUniform() 76 rnd = r->Rand32(); // rnd uniform over [0, 2^{32}) in UnbiasedUniform()
|
D | simple_philox.h | 36 PHILOX_DEVICE_INLINE uint32 Rand32() { return single_(); } in Rand32() function
|
/external/tensorflow/tensorflow/core/util/ |
D | example_proto_fast_parsing_test.cc | 329 auto len = 1 + rng->Rand32() % 200; in RandStr() 334 key_char_lookup[rng->Rand32() % (sizeof(key_char_lookup) / in RandStr() 342 auto num_keys = 1 + rng->Rand32() % 100; in Fuzz() 351 auto num_concats = 1 + rng->Rand32() % 4; in Fuzz() 357 auto num_active_keys = 1 + rng->Rand32() % all_keys.size(); in Fuzz() 361 auto fkey = all_keys[rng->Rand32() % all_keys.size()]; in Fuzz() 362 auto ftype_idx = rng->Rand32() % feat_types.size(); in Fuzz() 363 auto num_features = 1 + rng->Rand32() % 5; in Fuzz()
|
/external/tensorflow/tensorflow/core/graph/ |
D | tensor_id_test.cc | 38 const uint32 space = 1 << (rnd->Rand32() % (max_log + 1)); in Skewed() 39 return rnd->Rand32() % space; in Skewed()
|
/external/tensorflow/tensorflow/core/kernels/image/ |
D | random_crop_op.cc | 83 offset_width = random.Rand32() % (width - target_width + 1); in Compute() 86 offset_height = random.Rand32() % (height - target_height + 1); in Compute()
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | single_threaded_executor_test.cc | 284 uint32 r = 1 + rand.Rand32() % width; in BM_executor() 294 r = 1 + rand.Rand32() % (ready_nodes.size()); in BM_executor() 302 r = 1 + rand.Rand32() % width; in BM_executor()
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | gpu_bfc_allocator_test.cc | 144 std::max<size_t>(rand.Rand32() % 1048576, 100), 1048576); in TEST_P() 168 std::max<size_t>(rand.Rand32() % 1048576, 100), 1048576); in TEST_P() 275 std::max<size_t>(rand.Rand32() % max_mem, 100), max_mem); in TEST_P() 295 std::max<size_t>(rand.Rand32() % max_mem_2, 100), max_mem_2); in TEST_P()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 99 uint32_t Rand32() { in Rand32() function in llvm::__anon35362e5a0111::Random 107 uint64_t Val = Rand32(); in Rand64() 108 return Val | (uint64_t(Rand32()) << 32); in Rand64()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | executor_test.cc | 444 uint32 r = 1 + rand.Rand32() % width; in BM_executor() 454 r = 1 + rand.Rand32() % (ready_nodes.size()); in BM_executor() 462 r = 1 + rand.Rand32() % width; in BM_executor()
|
/external/ltp/testcases/kernel/io/disktest/ |
D | sfunc.c | 66 long Rand32(void) in Rand32() function
|
/external/rust/crates/oorandom/ |
D | README.md | 70 let mut rng = oorandom::Rand32::new(some_seed);
|
/external/tensorflow/tensorflow/core/util/sparse/ |
D | sparse_tensor_test.cc | 799 int len = rnd.Rand32() % 1000; in BM_SparseReorderString()
|