shaneMangudi / bcrypt-nodejs

Native implementation of bcrypt for NodeJS
Other
574 stars 69 forks source link

Rounds not optional in bcrypt.genSalt function #71

Open nisargap opened 8 years ago

nisargap commented 8 years ago

bcrypt.genSalt(function(err, salt){ console.log(salt); }); According to the README the rounds parameter is optional but when I run this it says that no callback was provided.

vittorio commented 7 years ago

Actually, it's not optional parameter If you don't want to specify count of rounds just call bcrypt.genSalt(null, callback)