Files
bordervillegame/node_modules/livekit-server-sdk/dist/crypto/uuid.js
T
2026-08-22 08:40:29 +02:00

12 lines
318 B
JavaScript

async function getRandomBytes(size = 16) {
if (globalThis.crypto) {
return crypto.getRandomValues(new Uint8Array(size));
} else {
const nodeCrypto = await import("node:crypto");
return nodeCrypto.getRandomValues(new Uint8Array(size));
}
}
export {
getRandomBytes
};
//# sourceMappingURL=uuid.js.map