MCPcopy Create free account
hub / github.com/Toulu-debug/enen / generateStr

Function generateStr

TS_USER_AGENTS.ts:115–122  ·  view source on GitHub ↗
(input: number)

Source from the content-addressed store, hash-verified

113
114function getJxToken(cookie: string, phoneId: string = '') {
115 function generateStr(input: number) {
116 let src = 'abcdefghijklmnopqrstuvwxyz1234567890'
117 let res = ''
118 for (let i = 0; i < input; i++) {
119 res += src[Math.floor(src.length * Math.random())]
120 }
121 return res
122 }
123
124 if (!phoneId)
125 phoneId = generateStr(40)

Callers 1

getJxTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected