export function uid(): string {
// Kort, stabilt id per steg. crypto.randomUUID finns i alla moderna webbläsare.
try {
return crypto.randomUUID().slice(0, 12);
} catch {
return Math.random().toString(36).slice(2, 14);
}
}
export function uid(): string {
// Kort, stabilt id per steg. crypto.randomUUID finns i alla moderna webbläsare.
try {
return crypto.randomUUID().slice(0, 12);
} catch {
return Math.random().toString(36).slice(2, 14);
}
}