Home | History | Annotate | Download | only in gtest

Lines Matching defs:random

492 // A valid random seed must be in [1, kMaxRandomSeed].
515 // Returns a random seed in range [1, kMaxRandomSeed] based on the
530 // Returns the first valid random seed after 'seed'. The behavior is
535 << "Invalid random seed " << seed << " - must be in [1, "
685 void ShuffleRange(internal::Random* random, int begin, int end,
699 const int selected = begin + random->Generate(range_width);
706 inline void Shuffle(internal::Random* random, std::vector<E>* v) {
707 ShuffleRange(random, 0, static_cast<int>(v->size()), v);
1222 // Gets the random seed used at the start of the current test iteration.
1225 // Gets the random number generator.
1226 internal::Random* random() { return &random_; }
1321 // The random number seed used at the beginning of the test run.
1324 // Our random number generator.
1325 internal::Random random_;
1575 "Random number seed to use when shuffling test orders. Must be in range "
1610 // Generates a random number from [0, range), using a Linear
1613 UInt32 Random::Generate(UInt32 range) {
3798 void TestCase::ShuffleTests(internal::Random* random) {
3799 Shuffle(random, &test_indices_);
5053 // Returns the random seed used at the start of the current test run.
5342 random()->Reseed(random_seed_);
5394 // Picks a new random seed for each iteration.
5614 ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_);
5617 ShuffleRange(random(), last_death_test_case_ + 1,
5622 test_cases_[i]->ShuffleTests(random());
5880 " Random number seed to use for shuffling test orders (between 1 and\n"