GHHG10's picture
download
raw
359 Bytes
const fallback = () => Math.random().toString(16).slice(2)
export function uuid() {
const c = globalThis.crypto
if (!c || typeof c.randomUUID !== "function") return fallback()
if (typeof globalThis.isSecureContext === "boolean" && !globalThis.isSecureContext) return fallback()
try {
return c.randomUUID()
} catch {
return fallback()
}
}

Xet Storage Details

Size:
359 Bytes
·
Xet hash:
00eed72f75b51ec17754f869c78b5caa62c0b66550f6fe4bb675279a42abacb5

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