MCPcopy Index your code
hub / github.com/dirk1983/deepseek / randomString

Function randomString

js/chat.js:367–376  ·  view source on GitHub ↗
(len)

Source from the content-addressed store, hash-verified

365 }
366
367 function randomString(len) {
368 len = len || 32;
369 var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; /****默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1****/
370 var maxPos = $chars.length;
371 var pwd = '';
372 for (i = 0; i < len; i++) {
373 pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
374 }
375 return pwd;
376 }
377
378});

Callers 2

drawFunction · 0.85
streamingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…