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