Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ async function getRandomIntBetween(nonce: number) {
if (nonce === 2) {
// We want to exercise the case where the function arguments are length 3
// but the third arg is still not a callback so it runs sync
return crypto.randomInt(128, 256, undefined) as undefined as number
return crypto.randomInt(0, 2 ** 48 - 1, undefined) as undefined as number
} else {
return crypto.randomInt(128, 256)
return crypto.randomInt(0, 2 ** 48 - 1)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ export default async function Page() {

async function getRandomIntUpTo(_nonce: number) {
'use cache'
return crypto.randomInt(128)
return crypto.randomInt(2 ** 48 - 1)
}
Loading