Last active
July 6, 2019 18:00
-
-
Save lalitkale/b14e755eda6a44455da435cea981d3ac to your computer and use it in GitHub Desktop.
Generate UUID
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
/** | |
* https://gist.github.com/LeverOne/1308368 | |
*/ | |
function uuid (a,b){for(b=a='';a++<36;b+=a*51&52?(a^15?8^Math.random()*(a^20?16:4):4).toString(16):'-');return b} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment