'use strict'; class RandomInt64 { state; output; constructor(signed) { this.state = new Uint32Array(2); this.output = signed ? new BigInt64Array(this.state.buffer) : new BigUint64Array(this.state.buffer); } create() { const t = performance.now(); const a = Math.floor(t * 4294967296) ^ Math.floor(t); this.state[0] = a ^ Math.floor(Math.random() * 4294967296); this.state[1] = ~a ^ Math.floor(Math.random() * 4294967296); return this.output[0]; } } class RandomBits64 { state; output; constructor(copy) { this.state = new Uint32Array(2); if (!copy) { this.output = new Uint8Array(this.state.buffer); } } create() { const t = performance.now(); const a = Math.floor(t * 4294967296) ^ Math.floor(t); this.state[0] = a ^ Math.floor(Math.random() * 4294967296); this.state[1] = ~a ^ Math.floor(Math.random() * 4294967296); return this.output !== void 0 ? this.output : new Uint8Array(this.state.buffer.slice(0)); } } exports.RandomBits64 = RandomBits64; exports.RandomInt64 = RandomInt64; //# sourceMappingURL=random-int64.cjs.map