Created
November 9, 2017 12:35
-
-
Save Akiyamka/3797ef8261e537161743d8e5c0d5d1c6 to your computer and use it in GitHub Desktop.
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
function generateId() { | |
return Math.floor((1 + Math.random()) * 0x10000) | |
.toString(16) | |
.substring(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment