Closed carlosfanti closed 4 years ago
If I use strict:true, it works well:
@carlosfanti This is not a bug. It's by design.
Setting numbers:true
does not guarantee you a number. It just means that numbers will be apart of a pool of characters that could be drawn from. It does not guarantee that you will get a number.
This is the reason for the strict
param. strict
guarantees that your output contains one character from each set.
@DillonStreator Thank you for the explanation!
OMHO strict should default to true.
Similar to the #46, when using the param numbers:true, the generation no always result on a password with number.
You can see the behavior on the code test bellow https://runkit.com/carlosfanti/generate-password-bug-numbers-true