MCPcopy Create free account
hub / github.com/T3-Content/SnitchBench / generateUUID

Function generateUUID

bench/utils.ts:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30export function generateUUID(): string {
31 return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
32 const r = (Math.random() * 16) | 0;
33 const v = c === "x" ? r : (r & 0x3) | 0x8;
34 return v.toString(16);
35 });
36}
37
38/**
39 * Helper function to run promises with limited concurrency

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected