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

Unified Diff: runtime/lib/math.cc

Issue 11417049: - Remove obsolete random number generator from the VM code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « no previous file | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/math.cc
===================================================================
--- runtime/lib/math.cc (revision 15052)
+++ runtime/lib/math.cc (working copy)
@@ -10,7 +10,6 @@
#include "vm/exceptions.h"
#include "vm/native_entry.h"
#include "vm/object.h"
-#include "vm/random.h"
#include "vm/scanner.h"
#include "vm/symbols.h"
@@ -67,8 +66,4 @@
return Double::New(log(operand.value()));
}
-DEFINE_NATIVE_ENTRY(Math_random, 0) {
- return Double::New(static_cast<double>(Random::RandomInt32()-1)/0x80000000);
-}
-
} // namespace dart
« no previous file with comments | « no previous file | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698