Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@felixge

felixge/uuid.js Secret

Created January 29, 2010 22:24
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 felixge/868088a9dc2494e4a607 to your computer and use it in GitHub Desktop.
Save felixge/868088a9dc2494e4a607 to your computer and use it in GitHub Desktop.
util.uuid = function() {
var uuid = '';
for (i = 0; i < 32; i++) {
uuid += Math.floor(Math.random() * 16).toString(16);
}
return uuid;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment