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

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

Issue 1413923004: Implement cryptographically secure random numbers by using crypto.getRandomValues. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix typo in return type. Created 5 years, 2 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/lib.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/math/random_secure_test.dart
diff --git a/tests/lib/math/random_secure_test.dart b/tests/lib/math/random_secure_test.dart
index cb3bf4f38e46c08548522067213023b641cf112d..33a563ef45f9a4aedc59755eb174fbedb0ebd694 100644
--- a/tests/lib/math/random_secure_test.dart
+++ b/tests/lib/math/random_secure_test.dart
@@ -30,8 +30,8 @@ main() {
rng0 = new Random.secure();
for(var i = 0; i <= 32; i++) {
rng1 = new Random.secure();
- checkInt(1 << 32);
- checkInt(1 << (32 - i));
+ checkInt(pow(2, 32));
+ checkInt(pow(2, 32 - i));
checkInt(1000000000);
}
var checkDouble = () {
« no previous file with comments | « tests/lib/lib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698