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 53a37526714a127f8ad9bf68677e7d88eaae6496..ff428402b6b7c92faf4dab6cb8569458606ade32 100644 |
--- a/src/base/utils/random-number-generator.cc |
+++ b/src/base/utils/random-number-generator.cc |
@@ -124,6 +124,7 @@ int RandomNumberGenerator::Next(int bits) { |
void RandomNumberGenerator::SetSeed(int64_t seed) { |
+ if (seed == 0) seed = 1; |
initial_seed_ = seed; |
state0_ = MurmurHash3(bit_cast<uint64_t>(seed)); |
state1_ = MurmurHash3(state0_); |