Why utils.uid uses Math and regex? #823

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


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?


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