Ensure bench/random test uses int dimensions

This commit is contained in:
Lovell Fuller 2015-01-16 22:28:15 +00:00
parent c158d51f8b
commit 35c53f78c8
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
"imagemagick-native": "^1.6.0",
"gm": "^1.17.0",
"async": "^0.9.0",
"semver": "^4.1.0",
"semver": "^4.2.0",
"benchmark": "^1.0.0"
},
"license": "Apache 2.0",

View File

@ -12,7 +12,7 @@ var min = 320;
var max = 960;
var randomDimension = function() {
return Math.random() * (max - min) + min;
return Math.ceil(Math.random() * (max - min) + min);
};
new Benchmark.Suite('random').add('imagemagick', {