Quantumbraid's picture
download
raw
440 Bytes
let getRandomValues;
const rnds8 = new Uint8Array(16);
export default function rng() {
if (!getRandomValues) {
if (typeof crypto === 'undefined' || !crypto.getRandomValues) {
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
}
getRandomValues = crypto.getRandomValues.bind(crypto);
}
return getRandomValues(rnds8);
}

Xet Storage Details

Size:
440 Bytes
·
Xet hash:
005c6ce005d77bf044c08949f072c598b3824833b8295d0b591d03bfe8641258

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