Quantumbraid's picture
download
raw
305 Bytes
import { randomFillSync } from 'crypto';
const rnds8Pool = new Uint8Array(256);
let poolPtr = rnds8Pool.length;
export default function rng() {
if (poolPtr > rnds8Pool.length - 16) {
randomFillSync(rnds8Pool);
poolPtr = 0;
}
return rnds8Pool.slice(poolPtr, (poolPtr += 16));
}

Xet Storage Details

Size:
305 Bytes
·
Xet hash:
89979f66919b7da0708e3528d63077f0d53d6c9f98c3d6289aef4a356d3d1d72

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.