Untitled

Anonymous
plain_text
12/06/2023 5:16 PM
360 B
24
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