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 @@ 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', {