Searched refs:rng_ (Results 1 – 10 of 10) sorted by relevance
/external/vulkan-validation-layers/demos/smoke/ |
D | Simulation.cpp | 78 rng_(rng_seed), in ColorPicker() 87 return glm::vec3{ red_(rng_), in pick() 88 green_(rng_), in pick() 89 blue_(rng_) }; in pick() 93 std::mt19937 rng_; member in __anonaac04e910111::ColorPicker 102 : rng_(rng_seed), dir_(-1.0f, 1.0f), speed_(0.1f, 1.0f) in Animation() 104 float x = dir_(rng_); in Animation() 105 float y = dir_(rng_); in Animation() 106 float z = dir_(rng_); in Animation() 112 current_.speed = speed_(rng_); in Animation() [all …]
|
D | Simulation.h | 49 std::mt19937 rng_; variable 76 std::mt19937 rng_; variable
|
/external/v8/test/cctest/ |
D | types-fuzz.h | 42 : region_(region), isolate_(isolate), rng_(rng) { in Types() 97 integers.push_back(isolate->factory()->NewNumber(-rng_->NextInt(10))); in Types() 98 integers.push_back(isolate->factory()->NewNumber(+rng_->NextInt(10))); in Types() 100 double x = rng_->NextInt(); in Types() 102 x *= rng_->NextInt(); in Types() 240 return types[rng_->NextInt(static_cast<int>(types.size()))]; in Random() 244 switch (rng_->NextInt(depth == 0 ? 3 : 20)) { 251 for (int i = 0, m = 1 + rng_->NextInt(3); i < m; ++i) { 252 int j = rng_->NextInt(n); 270 int i = rng_->NextInt(static_cast<int>(maps.size())); [all …]
|
D | test-strings.cc | 279 MyRandomNumberGenerator rng_; member in ConsStringGenerationData 289 rng_.init(); in ConsStringGenerationData() 291 building_blocks_, kNumberOfBuildingBlocks, long_blocks, &rng_); in ConsStringGenerationData() 316 rng_.init(); in Reset() 399 bool flat = data->rng_.next(data->empty_leaf_threshold_); in ConstructRandomString() 400 bool terminate_early = data->rng_.next(data->early_termination_threshold_); in ConstructRandomString() 411 bool terminate_left = terminate || !data->rng_.next(data->leftness_); in ConstructRandomString() 412 bool terminate_right = terminate || !data->rng_.next(data->rightness_); in ConstructRandomString() 416 left = data->block(data->rng_.next()); in ConstructRandomString() 425 right = data->block(data->rng_.next()); in ConstructRandomString() [all …]
|
/external/v8/test/unittests/compiler/ |
D | typer-unittest.cc | 26 rng_ = random_number_generator(); in TyperTest() 35 double x = rng_->NextInt(); in TyperTest() 37 x *= rng_->NextInt(); in TyperTest() 48 int32s.push_back(rng_->NextInt()); in TyperTest() 56 v8::base::RandomNumberGenerator* rng_; member in v8::internal::compiler::TyperTest 87 double i = numbers[rng_->NextInt(static_cast<int>(numbers.size()))]; in RandomRange() 88 double j = numbers[rng_->NextInt(static_cast<int>(numbers.size()))]; in RandomRange() 98 switch (rng_->NextInt(4)) { in RandomInt() 109 return rng_->NextInt() * static_cast<double>(rng_->NextInt()); in RandomInt() 111 double result = nearbyint(min + (max - min) * rng_->NextDouble()); in RandomInt() [all …]
|
D | instruction-selector-unittest.h | 27 base::RandomNumberGenerator* rng() { return &rng_; } in rng() 249 base::RandomNumberGenerator rng_; variable
|
D | instruction-selector-unittest.cc | 18 InstructionSelectorTest::InstructionSelectorTest() : rng_(FLAG_random_seed) {} in InstructionSelectorTest()
|
/external/v8/test/cctest/compiler/ |
D | test-gap-resolver.cc | 165 ParallelMoveCreator() : rng_(CcTest::random_number_generator()) {} in ParallelMoveCreator() 182 int index = rng_->NextInt(3); in RandomRepresentation() 196 int index = rng_->NextInt(2); in RandomDoubleRepresentation() 202 int index = rng_->NextInt(7); in CreateRandomOperand() 204 switch (rng_->NextInt(is_source ? 7 : 6)) { in CreateRandomOperand() 235 v8::base::RandomNumberGenerator* rng_; member in v8::internal::compiler::ParallelMoveCreator
|
/external/v8/test/unittests/ |
D | test-utils.h | 61 RandomNumberGenerator* rng() { return &rng_; } in rng() 64 RandomNumberGenerator rng_;
|
D | test-utils.cc | 83 : rng_(GetRandomSeedFromFlag(::v8::internal::FLAG_random_seed)) {} in TestWithRandomNumberGenerator()
|