Last active
January 8, 2016 14:31
-
-
Save arleyhr/625fc01064385077a6c8 to your computer and use it in GitHub Desktop.
Simple uuid generator
This file contains 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
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