Index: src/base/utils/random-number-generator.cc |
diff --git a/src/base/utils/random-number-generator.cc b/src/base/utils/random-number-generator.cc |
index 94549360dd23376b3cc9bfa19314970364ac6d50..a1ec9d71842766d4cb0f51962e05c4c7aae00f32 100644 |
--- a/src/base/utils/random-number-generator.cc |
+++ b/src/base/utils/random-number-generator.cc |
@@ -79,7 +79,7 @@ RandomNumberGenerator::RandomNumberGenerator() { |
int RandomNumberGenerator::NextInt(int max) { |
- DCHECK_LE(0, max); |
+ DCHECK_LT(0, max); |
// Fast path if max is a power of 2. |
if (IS_POWER_OF_TWO(max)) { |