Index: runtime/lib/math_patch.dart |
diff --git a/runtime/lib/math_patch.dart b/runtime/lib/math_patch.dart |
index 667174cc61d2c13d1595c0bcf6c0f1689938d09c..1929aff26c62bf8b711640279e4b19f61f848413 100644 |
--- a/runtime/lib/math_patch.dart |
+++ b/runtime/lib/math_patch.dart |
@@ -116,6 +116,7 @@ class _Random implements Random { |
// _state[_kSTATE_HI] = state >> 32; |
// This is a native to prevent 64-bit operations in Dart, which |
// fail with --throw_on_javascript_int_overflow. |
+ // TODO(regis): Implement in Dart and remove Random_nextState in math.cc. |
void _nextState() native "Random_nextState"; |
int nextInt(int max) { |
@@ -158,8 +159,10 @@ class _Random implements Random { |
// Use a singleton Random object to get a new seed if no seed was passed. |
static var _prng = new _Random._withState(_initialSeed()); |
+ |
srdjan
2016/02/10 23:35:20
One line too much
regis
2016/02/10 23:42:40
Done.
|
// This is a native to prevent 64-bit operations in Dart, which |
// fail with --throw_on_javascript_int_overflow. |
+ // TODO(regis): Implement here in Dart and remove native in math.cc. |
static Uint32List _setupSeed(int seed) native "Random_setupSeed"; |
// Get a seed from the VM's random number provider. |
static Uint32List _initialSeed() native "Random_initialSeed"; |