Skip to content

set numbers as true but sometimes get random string no any number #1

@rhythm1993

Description

@rhythm1993

function getRandomString(length, options) {
const params = {
numbers: get(options, 'numbers', true),
letters: get(options, 'letters', true),
specials: get(options, 'specials', true),
};
return stringRandom(length, params);
}
......
Can see the function detail as above, I have only set the options as non-mandatory params, if no options passed here, all options will be true, but what I got the string have no at least one number...not always like this, but sometimes can not works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions