MCPcopy Create free account
hub / github.com/NobyDa/Script / stringRandom

Function stringRandom

iQIYI-DailyBonus/iQIYI.js:157–164  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

155function Checkin() {
156 const timestamp = new Date().getTime();
157 const stringRandom = (length) => {
158 var rdm62, ret = '';
159 while (length--) {
160 rdm62 = 0 | Math.random() * 62;
161 ret += String.fromCharCode(rdm62 + (rdm62 < 10 ? 48 : rdm62 < 36 ? 55 : 61))
162 }
163 return ret;
164 };
165 return new Promise(resolve => {
166 const sign_date = {
167 task_code: 'natural_month_sign',

Callers 1

CheckinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected