-
-
Notifications
You must be signed in to change notification settings - Fork 911
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
node-uuid 1.3.2 not working with node v0.4.12 #30
Comments
something like this should work (not tested)..
|
Thx for the report, @gavinuhma. Sorry for any inconvenience. (fwiw, I was testing on v0.5.8, where randomBytes() is defined, so I guess this was added somewhere in 0.5.x.) |
Oh, and 1.3.3 is npm-published, so an npm update should fix things. |
great. thanks :) |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
crypto.randomBytes wasn't added until node v0.6.0. The compatibility check (try/catch) doesn't work.
_rb gets set as undefined and doesn't fail until it's later called (outside of the try/catch).
https://github.com/broofa/node-uuid/blob/master/uuid.js#L44
resulting error:
The text was updated successfully, but these errors were encountered: