diff --git a/src/core/utils/uuid.ts b/src/core/utils/uuid.ts index c6fae74e..b5ef982b 100644 --- a/src/core/utils/uuid.ts +++ b/src/core/utils/uuid.ts @@ -1,8 +1,8 @@ // for envs where crypto.randomUUID is not available (i.e., Node). function fallback(): string { - return Math.random().toString(36).substring(2, 10); + return Math.random().toString(36).substring(2, 10); } export function uuid(): string { - return globalThis.crypto.randomUUID?.() ?? fallback(); + return globalThis.crypto.randomUUID?.() ?? fallback(); }