diff --git a/test/e2e/app-dir/cache-components/app/node-crypto/random-int/between/cached/page.tsx b/test/e2e/app-dir/cache-components/app/node-crypto/random-int/between/cached/page.tsx index 1fe11a7c1588d..1d14287114b05 100644 --- a/test/e2e/app-dir/cache-components/app/node-crypto/random-int/between/cached/page.tsx +++ b/test/e2e/app-dir/cache-components/app/node-crypto/random-int/between/cached/page.tsx @@ -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) } } diff --git a/test/e2e/app-dir/cache-components/app/node-crypto/random-int/up-to/cached/page.tsx b/test/e2e/app-dir/cache-components/app/node-crypto/random-int/up-to/cached/page.tsx index 1693915b1b7c5..a5e5bfe5637a7 100644 --- a/test/e2e/app-dir/cache-components/app/node-crypto/random-int/up-to/cached/page.tsx +++ b/test/e2e/app-dir/cache-components/app/node-crypto/random-int/up-to/cached/page.tsx @@ -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) }