Skip to content

Generated password does not meet the requirements #487

@ewefie

Description

@ewefie

I've spotted an issue while generating passwords with following code:

`var faker = new Faker();

var password = faker.internet().password(8, 100, true, true, true); //(minLength, max Length, includeUppercase, includeSpecial, includeDigit)`

The generated password does not always include a digit (about 1-2% results are incorrect).

Sample incorrect output:

  • ^Ez!Wdi@
  • *Wow$&pIkeK@*OF ("O" in this one is not a zero)

Faker Version: 1.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions