repositories
/
benchmarks-js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use benny in random integer generator benchmark
[benchmarks-js.git]
/
benchmark-utils.js
diff --git
a/benchmark-utils.js
b/benchmark-utils.js
index 1e7914f95b78ec72175f5d5827bebd28980f1038..164cfc6596184017b0735cd98833a16d376f039c 100644
(file)
--- a/
benchmark-utils.js
+++ b/
benchmark-utils.js
@@
-14,7
+14,7
@@
function secureRandom () {
* @param min
* @returns
*/
-function generateRandomInteger (max, min = 0) {
+function generateRandomInteger (max
= Number.MAX_SAFE_INTEGER
, min = 0) {
if (max < 0) {
throw new RangeError('Invalid interval')
}