MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / uuid

Function uuid

wxapp/skyworth.js:74–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74function uuid() {
75 if (crypto.randomUUID) return crypto.randomUUID();
76 return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
77 const r = (Math.random() * 16) | 0;
78 const v = c === "x" ? r : (r & 0x3) | 0x8;
79 return v.toString(16);
80 });
81}
82
83function taskSignHeaders(data = {}) {
84 const payload = { ...data };

Callers 1

taskSignHeadersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected