Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new Buffer(randomHex(), 'hex') - Gives error: "Uncaught TypeError: Invalid hex string" #3

Closed
seijihirao opened this issue Jul 1, 2015 · 1 comment

Comments

@seijihirao
Copy link

Because the default length is 7 (odd)

@sitegui
Copy link
Member

sitegui commented Jul 1, 2015

It uses the same default length as randomStr().

Maybe change it to 8?

@sitegui sitegui closed this as completed in 7abae10 Jul 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants