Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 507fbfc1142ccf057a70995c112c143232a1a402..647687158f105e8054226bd4c8816dab931cd147 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -4719,7 +4719,7 @@ Smi* JSReceiver::GenerateIdentityHash() { |
do { |
// Generate a random 32-bit hash value but limit range to fit |
// within a smi. |
- hash_value = V8::RandomPrivate(isolate) & Smi::kMaxValue; |
+ hash_value = isolate->random_number_generator()->NextInt() & Smi::kMaxValue; |
attempts++; |
} while (hash_value == 0 && attempts < 30); |
hash_value = hash_value != 0 ? hash_value : 1; // never return 0 |