Last active
March 27, 2018 18:30
-
-
Save flockonus/ca3cbb9c5f19e3746cba827e6badc8c9 to your computer and use it in GitHub Desktop.
Random 8-length string JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Really fast way to create 8 bytes random string =~ 1e12 possibilities | |
Math.round(Math.random() * 1e13).toString(32).substr(-8,8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment