Skip to content

Commit

Permalink
^ is bitwise XOR. To pow(2, 50) use (1 << 25)*(1 << 25)
Browse files Browse the repository at this point in the history
  • Loading branch information
orsenkucher authored Jun 20, 2020
1 parent 0991a6d commit 22f1478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/benchmark.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Map<String, int> generateIntEntries(int count) {
var random = Random();
for (var i = 0; i < count; i++) {
var key = randStr.randomAlphaNumeric(randStr.randomBetween(5, 200));
var val = random.nextInt(2 ^ 50);
var val = random.nextInt((1 << 25)*(1 << 25));
map[key] = val;
}
return map;
Expand Down

0 comments on commit 22f1478

Please sign in to comment.