diff options
author | 2023-09-01 20:09:45 -0700 | |
---|---|---|
committer | 2023-09-01 20:09:45 -0700 | |
commit | 45edb7bcf780a492c418ddd551210c2613b5a562 (patch) | |
tree | d6c196291354dbec62b18b076f5a006908f438df | |
parent | f0f91a2a31c17fd650975f75ef8554abeb5f1a98 (diff) | |
download | bun-45edb7bcf780a492c418ddd551210c2613b5a562.tar.gz bun-45edb7bcf780a492c418ddd551210c2613b5a562.tar.zst bun-45edb7bcf780a492c418ddd551210c2613b5a562.zip |
exclusive max
-rw-r--r-- | src/bun.js/webcore.zig | 2 |
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( |