Index: runtime/vm/random.cc |
diff --git a/runtime/vm/random.cc b/runtime/vm/random.cc |
index 6f1b6eba17641f7c9064a7efacef96979622cc67..5153ffe21f070f78e1ed65d18b1e1393b4d6ce23 100644 |
--- a/runtime/vm/random.cc |
+++ b/runtime/vm/random.cc |
@@ -3,8 +3,9 @@ |
// BSD-style license that can be found in the LICENSE file. |
#include "vm/random.h" |
+#include "vm/dart.h" |
#include "vm/flags.h" |
-#include "vm/isolate.h" |
+#include "vm/os.h" |
namespace dart { |
@@ -13,7 +14,7 @@ DEFINE_FLAG(int, random_seed, 0, "Override the random seed for debugging."); |
Random::Random() { |
uint64_t seed = FLAG_random_seed; |
if (seed == 0) { |
- Dart_EntropySource callback = Isolate::entropy_source_callback(); |
+ Dart_EntropySource callback = Dart::entropy_source_callback(); |
if (callback != NULL) { |
if (!callback(reinterpret_cast<uint8_t*>(&seed), sizeof(seed))) { |
// Callback failed. Reset the seed to 0. |