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

Unified Diff: lib/math/random.dart

Issue 10538105: Make isUtc a getter, change some method names in Date. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 6 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 | « lib/compiler/implementation/ssa/tracer.dart ('k') | runtime/bin/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/math/random.dart
diff --git a/lib/math/random.dart b/lib/math/random.dart
index ba0f938c987ae978f6369d32bc5f11f0dcdc1411..d533cf629899bd011bb4cca8f7ac4bb084f53ff5 100644
--- a/lib/math/random.dart
+++ b/lib/math/random.dart
@@ -98,7 +98,7 @@ class _Random implements Random {
int _nextSeed() {
if (_prng == null) {
// TODO(iposva): Use system to get a random seed.
- _prng = new _Random(new Date.now().value);
+ _prng = new _Random(new Date.now().millisecondsSinceEpoch);
}
// Trigger the PRNG once to change the internal state.
_prng._nextInt32();
« no previous file with comments | « lib/compiler/implementation/ssa/tracer.dart ('k') | runtime/bin/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698