Home | History | Annotate | Download | only in gtest

Lines Matching defs:random

505 // A valid random seed must be in [1, kMaxRandomSeed].
534 // Returns a random seed in range [1, kMaxRandomSeed] based on the
549 // Returns the first valid random seed after 'seed'. The behavior is
554 << "Invalid random seed " << seed << " - must be in [1, "
712 void ShuffleRange(internal::Random* random, int begin, int end,
726 const int selected = begin + random->Generate(range_width);
733 inline void Shuffle(internal::Random* random, std::vector<E>* v) {
734 ShuffleRange(random, 0, static_cast<int>(v->size()), v);
1198 // Gets the random seed used at the start of the current test iteration.
1201 // Gets the random number generator.
1202 internal::Random* random() { return &random_; }
1305 // The random number seed used at the beginning of the test run.
1308 // Our random number generator.
1309 internal::Random random_;
1730 "Random number seed to use when shuffling test orders. Must be in range "
1772 // Generates a random number from [0, range), using a Linear
1775 UInt32 Random::Generate(UInt32 range) {
3947 void TestCase::ShuffleTests(internal::Random* random) {
3948 Shuffle(random, &test_indices_);
5438 // Returns the random seed used at the start of the current test run.
5777 random()->Reseed(random_seed_);
5829 // Picks a new random seed for each iteration.
6087 ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_);
6090 ShuffleRange(random(), last_death_test_case_ + 1,
6095 test_cases_[i]->ShuffleTests(random());
6327 " Random number seed to use for shuffling test orders (between 1 and\n"