Why utils.uid uses Math and regex? #823

Closed
ix-xerri opened this Issue Jun 12, 2013 · 1 comment

Comments

Projects
None yet
2 participants

Why not crypto.randomBytes(len).toString('hex') in utils.uid? Is the use of Math/base64 needed? Doesn't the regex increase clashes?

Member

tj commented Jun 12, 2013

should be fine swapping 1:1 like that AFAIK, im going to switch to the "uid2" lib though, no reason to inline our stuff

tj closed this Jun 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment