Erster Commit
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user