/** * Generates a unique identifier using crypto.getRandomValues() */ export const uuid = (): string => { const bytes = new Uint8Array(16); crypto.getRandomValues(bytes); return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join(""); };