aureooms/js-pseudo-random

View on GitHub
src/genUint16.js

Summary

Maintainability
A
0 mins
Test Coverage
export default function* genUint16(prng) {
    for (const x of prng) {
        yield (x >>> 0) & 0xff_ff;
        yield (x >>> 16) & 0xff_ff;
    }
}