MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / randomid

Function randomid

webiojs/src/utils.ts:119–127  ·  view source on GitHub ↗
(length: number)

Source from the content-addressed store, hash-verified

117
118
119export function randomid(length: number) {
120 let result = '';
121 let characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
122 let charactersLength = characters.length;
123 for (let i = 0; i < length; i++) {
124 result += characters.charAt(Math.floor(Math.random() * charactersLength));
125 }
126 return result;
127}
128
129// 跳转PyWebIO Application
130// name: app名称

Callers 3

start_sessionMethod · 0.90
render_tplFunction · 0.90
register_on_changeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…