Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1030)

Unified Diff: runtime/vm/random.cc

Issue 1807293002: - Fix for issue 25950 (add registration of a thread exit callback) (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self-review-comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/os_linux.cc ('k') | runtime/vm/thread_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « runtime/vm/os_linux.cc ('k') | runtime/vm/thread_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698