aureooms/js-pseudo-random

View on GitHub
src/nextBigUint64.js

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
export default function nextBigUint64(prng) {
    const a = prng.next().value;
    const b = prng.next().value;
    return BigInt(a) * BigInt(2 ** 32) + BigInt(b);
}