Skip to content

Conversation

@cjduncana
Copy link

According to the documentation, the rounds parameter in genSalt() should have a default value of 10. What I understand by reading that is that if there is only the callback function as a parameter, then the function would assign the default value to rounds and the callback function provided to callback. The code was throwing an error when this was done.

I replaced the parameter handling inside genSalt() to deal with this situation.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant