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

Unified Diff: tests/lib/math/low_test.dart

Issue 12622002: - Avoid wrapping into Mints when generating random numbers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « tests/lib/math/coin_test.dart ('k') | tests/lib/math/pi_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/math/low_test.dart
===================================================================
--- tests/lib/math/low_test.dart (revision 19556)
+++ tests/lib/math/low_test.dart (working copy)
@@ -16,7 +16,7 @@
var iterations = 200000;
- var seed = new Random().nextInt((1<<32) - 1);
+ var seed = new Random().nextInt(1<<16);
print("low_test seed: $seed");
var prng = new Random(seed);
« no previous file with comments | « tests/lib/math/coin_test.dart ('k') | tests/lib/math/pi_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698