Index: src/v8.cc |
diff --git a/src/v8.cc b/src/v8.cc |
index 004a33946148cc2a4f9c71591c5463606726d348..265f0a6db008580cf4d02fd098b4fa749f8eb898 100644 |
--- a/src/v8.cc |
+++ b/src/v8.cc |
@@ -162,6 +162,15 @@ void V8::FireCallCompletedCallback(Isolate* isolate) { |
void V8::InitializeOncePerProcessImpl() { |
FlagList::EnforceFlagImplications(); |
+ |
+ if (FLAG_predictable) { |
+ if (FLAG_random_seed == 0) { |
+ // Avoid random seeds in predictable mode. |
+ FLAG_random_seed = 12347; |
+ } |
+ FLAG_hash_seed = 0; |
+ } |
+ |
if (FLAG_stress_compaction) { |
FLAG_force_marking_deque_overflows = true; |
FLAG_gc_global = true; |