Untitled
unknown
plain_text
2 years ago
269 B
4
Indexable
const tokenGen = () => { const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; let token = ''; for (let i = 0; i < 16; i += 1) { token += characters.charAt(Math.floor(Math.random() * characters.length)); } return token; };
Editor is loading...
Leave a Comment