repositories
/
benchmarks-js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor: cleanup import
[benchmarks-js.git]
/
benchmark-utils.mjs
diff --git
a/benchmark-utils.mjs
b/benchmark-utils.mjs
index 7c7832e897d76061383214a3763142fa68159c6a..7a681c138877d9d6324333ad7197978864f5c036 100644
(file)
--- a/
benchmark-utils.mjs
+++ b/
benchmark-utils.mjs
@@
-46,7
+46,7
@@
export function generateRandomFloat (max = Number.MAX_VALUE, min = 0) {
if (max - min === Infinity) {
throw new RangeError('Invalid interval')
}
- return (
crypto.
randomBytes(4).readUInt32LE() / 0xffffffff) * (max - min) + min
+ return (randomBytes(4).readUInt32LE() / 0xffffffff) * (max - min) + min
}
/**