site-panzai/node_modules/unenv/dist/runtime/node/internal/crypto/web.mjs

10 lines
299 B
JavaScript
Raw Permalink Normal View History

2026-11-13 13:57:04 +01:00
// https://nodejs.org/api/crypto.html
// https://github.com/unjs/uncrypto
export const subtle = globalThis.crypto?.subtle;
export const randomUUID = () => {
return globalThis.crypto?.randomUUID();
};
export const getRandomValues = (array) => {
return globalThis.crypto?.getRandomValues(array);
};