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

Unified Diff: runtime/vm/random.h

Issue 1337943004: Add ThreadBarrier; use in GCMarker and unit test (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix git again. Created 5 years, 3 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/isolate_test.cc ('k') | runtime/vm/random.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/random.h
diff --git a/runtime/vm/random.h b/runtime/vm/random.h
index cda8dd87d60dcae56addbffbb2071edfee45bdb2..f5614dedbfce29854178f3c1665f379a088d5da3 100644
--- a/runtime/vm/random.h
+++ b/runtime/vm/random.h
@@ -13,6 +13,8 @@ namespace dart {
class Random {
public:
Random();
+ // Seed must be non-zero.
+ explicit Random(uint64_t seed);
~Random();
uint32_t NextUInt32();
@@ -23,6 +25,7 @@ class Random {
private:
void NextState();
+ void Initialize(uint64_t seed);
uint64_t _state;
« no previous file with comments | « runtime/vm/isolate_test.cc ('k') | runtime/vm/random.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698