Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

previewAutomationClientId.ts

4 lines229 Bytes

1export function createPreviewAutomationClientId(): string {
2 const bytes = globalThis.crypto.getRandomValues(new Uint8Array(16));
3 return `preview-${Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("")}`;
4}