Skip to content

Instantly share code, notes, and snippets.

@Zorgatone
Last active December 7, 2016 17:02
Show Gist options
  • Save Zorgatone/2b4661fb3b21ceb1426a51238a7783e5 to your computer and use it in GitHub Desktop.
Save Zorgatone/2b4661fb3b21ceb1426a51238a7783e5 to your computer and use it in GitHub Desktop.
function random20Chars() {
return btoa((Math.random()).toFixed(20).slice(2,22)).slice(1, 21);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment