commit | 6d3067c9be56c66c6b912be54bb688779fb954ca | [log] [tgz] |
---|---|---|
author | Wan-Teh Chang <wtc@google.com> | Fri Nov 16 11:11:28 2018 -0800 |
committer | Wan-Teh Chang <wtc@google.com> | Fri Nov 16 20:15:32 2018 +0000 |
tree | fdc469d819a6340ab992a8487c7a4fc7ff4d99d4 | |
parent | 772ed96bbf22d60f422fd1edc2df4ab9bbb80e81 [diff] |
Document the ACMRandom::Rand31() method. Change-Id: I09fda19ff9c156e6075fda1bcd5c02391d1ba1c8
diff --git a/test/acm_random.h b/test/acm_random.h index 0a8317f..a14b671 100644 --- a/test/acm_random.h +++ b/test/acm_random.h
@@ -26,6 +26,7 @@ void Reset(int seed) { random_.Reseed(seed); } + // Generates a random 31-bit unsigned integer from [0, 2^31). uint32_t Rand31(void) { return random_.Generate(testing::internal::Random::kMaxRange); }