Created
December 17, 2018 14:46
-
-
Save pedrouid/2984452bdf28f04faeb8691c681139b6 to your computer and use it in GitHub Desktop.
UUID Generator (Javascript) | 110 bytes
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 b(a){return a?(a^Math.random()*16>>a/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,b)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment