Index: src/v8.cc |
diff --git a/src/v8.cc b/src/v8.cc |
index 2933a94e7ab559b048c870270412e7ffa1433c00..7d2294ee0cf1ba6b4d19acccabac4bce04e6558c 100644 |
--- a/src/v8.cc |
+++ b/src/v8.cc |
@@ -135,7 +135,7 @@ static void seed_random(uint32_t* state) { |
state[i] = FLAG_random_seed; |
} else if (entropy_source != NULL) { |
uint32_t val; |
- ScopedLock lock(entropy_mutex.Pointer()); |
+ LockGuard<Mutex> lock_guard(entropy_mutex.Pointer()); |
entropy_source(reinterpret_cast<unsigned char*>(&val), sizeof(uint32_t)); |
state[i] = val; |
} else { |