Index: src/isolate-inl.h |
diff --git a/src/isolate-inl.h b/src/isolate-inl.h |
index c33e61d41777618478bb66cf71ed83913f2d3e4f..12a861f2b8961653c63566bef388735739c2db83 100644 |
--- a/src/isolate-inl.h |
+++ b/src/isolate-inl.h |
@@ -32,7 +32,11 @@ bool Isolate::DebuggerHasBreakPoints() { |
RandomNumberGenerator* Isolate::random_number_generator() { |
if (random_number_generator_ == NULL) { |
- random_number_generator_ = new RandomNumberGenerator; |
+ if (FLAG_random_seed != 0) { |
+ random_number_generator_ = new RandomNumberGenerator(FLAG_random_seed); |
+ } else { |
+ random_number_generator_ = new RandomNumberGenerator(); |
+ } |
} |
return random_number_generator_; |
} |