entropy-source/pseudo-random

View on GitHub
src/nextBigUint64.js

Summary

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