Files
mtusi2026lab5/frontend/src/lib/idempotency.ts
T
2026-11-10 16:21:46 +03:00

5 lines
162 B
TypeScript

export function createIdempotencyKey(): string {
const random = crypto.randomUUID().replaceAll("-", "");
return `web-${Date.now().toString(36)}-${random}`;
}