MCPcopy
hub / github.com/ModelEngine-Group/nexent / safeUUID

Function safeUUID

frontend/lib/utils.ts:415–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413 * Not cryptographically secure — suitable for client-side identifiers only.
414 */
415export function safeUUID(): string {
416 if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
417 return crypto.randomUUID();
418 }
419 return Math.random().toString(36).substring(2, 11);
420}

Callers 2

handleFilesUploadFunction · 0.90
handleFileSelectFunction · 0.90

Calls 2

toStringMethod · 0.80
randomMethod · 0.80

Tested by

no test coverage detected