Benchmarks: fix workload function
[poolifier.git] / tests / test-utils.js
index a3affb61c91899d187dd91e97f2693cfa7340d0d..9a49c822991c2629ac45280776604cb3be188a04 100644 (file)
@@ -36,7 +36,7 @@ class TestUtils {
     })
   }
 
-  static generateRandomInteger (max, min = 0) {
+  static generateRandomInteger (max = Number.MAX_SAFE_INTEGER, min = 0) {
     max = Math.floor(max)
     if (min) {
       min = Math.ceil(min)