aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bun.js/webcore.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/webcore.zig b/src/bun.js/webcore.zig
index 8adff53d3..168c4339b 100644
--- a/src/bun.js/webcore.zig
+++ b/src/bun.js/webcore.zig
@@ -646,7 +646,7 @@ pub const Crypto = struct {
}
}
- return JSValue.jsNumberFromUint64(std.crypto.random.intRangeAtMost(u52, at_least, at_most));
+ return JSValue.jsNumberFromUint64(std.crypto.random.intRangeLessThan(u52, at_least, at_most));
}
pub fn randomUUIDWithoutTypeChecks(