brendanashworth / generate-password

NodeJS library for generating cryptographically-secure passwords.
MIT License
354 stars 67 forks source link

Include number sometime does not work #80

Closed Ashwinkumar-R closed 1 year ago

Ashwinkumar-R commented 1 year ago

Hi,

I have set numbers: true, but most of the time the generated password does not include a number. It is buggy. Would be great if you fix it.

Thanks, Ashwin

brendanashworth commented 1 year ago

You also need to pass strict: true, otherwise there's no guarantee it'll include a number. See https://github.com/brendanashworth/generate-password#available-options