Skip to content

Instantly share code, notes, and snippets.

@reymon359
Created January 4, 2019 08:46
Show Gist options
  • Save reymon359/890d7df57960950093bc44d41775b183 to your computer and use it in GitHub Desktop.
Save reymon359/890d7df57960950093bc44d41775b183 to your computer and use it in GitHub Desktop.
Jus another token generator
// Author: Ramon morcillo @reymon359
function random() {
return Math.random().toString(36).substr(2); // To remove `0.`
}
function token() {
return random() + random(); // To make it longer
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment