MCPcopy
hub / github.com/apache/caldera / uuidv4

Function uuidv4

static/js/shared.js:252–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250}
251
252function uuidv4() {
253 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
254 let r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
255 return v.toString(16);
256 });
257}
258
259/* SECTIONS */
260

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected