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

Function randomString

wxapp/feihe.js:53–60  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

51}
52
53function randomString(length) {
54 const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
55 let result = "";
56 for (let i = 0; i < length; i++) {
57 result += chars[Math.floor(Math.random() * chars.length)];
58 }
59 return result;
60}
61
62function md5Upper(text) {
63 return crypto.createHash("md5").update(text).digest("hex").toUpperCase();

Callers 1

buildSignedHeadersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected