diff --git a/src/mixins/async.ts b/src/mixins/async.ts index fd5c4422..a091214b 100644 --- a/src/mixins/async.ts +++ b/src/mixins/async.ts @@ -239,7 +239,7 @@ export function Async(FS: T): Mixin = Pick & (new (...args: an * @internal */ export function randomBigInt(): bigint { - try { - return crypto.getRandomValues(new BigUint64Array(1))[0]; - } catch { - // fallback - return BigInt('0x' + randomHex(16 /* 4 bits per char */)); - } + return BigInt('0x' + randomHex(8)); }