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

Function randomUuid

wxapp/haitian.js:65–70  ·  view source on GitHub ↗
(len = 20)

Source from the content-addressed store, hash-verified

63}
64
65function randomUuid(len = 20) {
66 const chars = "abcdef0123456789";
67 let value = "";
68 for (let i = 0; i < len; i++) value += chars[Math.floor(Math.random() * chars.length)];
69 return value;
70}
71
72function isTokenError(message) {
73 return /401|403|token|登录|授权|失效|过期|no-show-toast/i.test(String(message || ""));

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected