Skip to content

Instantly share code, notes, and snippets.

@arleyhr
Last active January 8, 2016 14:31
Show Gist options
  • Save arleyhr/625fc01064385077a6c8 to your computer and use it in GitHub Desktop.
Save arleyhr/625fc01064385077a6c8 to your computer and use it in GitHub Desktop.
Simple uuid generator
var crypto = require('crypto')
module.exports = function(){
return crypto.randomBytes(5).toString('hex') +'-'+crypto.randomBytes(5).toString('hex') + '-'+(new Date().getTime());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment