MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / uuid4

Function uuid4

out/cli.cjs:70112–70118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70110 }
70111 }
70112}
70113function debug(action, ...args) {
70114 if (typeof process !== "undefined" && process?.env?.["DEBUG"] === "true") {
70115 console.log(`Anthropic:DEBUG:${action}`, ...args);
70116 }
70117}
70118var uuid4 = () => {
70119 return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c4) => {
70120 const r3 = Math.random() * 16 | 0;
70121 const v5 = c4 === "x" ? r3 : r3 & 3 | 8;

Callers 1

defaultIdempotencyKeyMethod · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected