Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Sep 28, 2023
1 parent 6ab5ae4 commit fea2606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/utils/uuid.ts
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit fea2606

Please sign in to comment.