Skip to content

Instantly share code, notes, and snippets.

@binarymax
Created April 5, 2015 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binarymax/9de9ffe37122fe11d14e to your computer and use it in GitHub Desktop.
Save binarymax/9de9ffe37122fe11d14e to your computer and use it in GitHub Desktop.
8 char GUID
//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