diff --git a/lib/web/fetch/body.js b/lib/web/fetch/body.js index 850a37fd801..81d9b6d0e67 100644 --- a/lib/web/fetch/body.js +++ b/lib/web/fetch/body.js @@ -23,7 +23,7 @@ try { const crypto = require('node:crypto') random = (max) => crypto.randomInt(0, max) } catch { - random = (max) => Math.floor(Math.random(max)) + random = (max) => Math.floor(Math.random() * max) } const textEncoder = new TextEncoder()