Created
April 5, 2015 20:05
-
-
Save binarymax/9de9ffe37122fe11d14e to your computer and use it in GitHub Desktop.
8 char GUID
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
//Easy 8 char Base-36 GUID | |
var GUID = function() { | |
var char = function(){return Math.floor(Math.random()*36).toString('36')}; | |
return char() + char() + char() + ((new Date())-0).toString('36').substr(3); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment