Created
October 4, 2017 20:11
-
-
Save Tuhaj/ba4ec1d29482a61b401263379d94bf73 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 randomString() { | |
return Math.floor((1 + Math.random()) * 0x10000).toString(32) | |
} | |
const randomId = () => (`${randomString()}-${randomString()}-${randomString()}`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment