Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rhythm1993 opened this issue Sep 25, 2020 · 0 comments
Open

Comments

@rhythm1993
Copy link

rhythm1993 commented Sep 25, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant