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

Added new Chilean RUT generator #487

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

acidrod
Copy link

@acidrod acidrod commented Jul 30, 2023

Created a full Chilean RUT generator for extending the Person and Company classes (Both of them use the Rut ID). The tests are fully validating the generation for random IDs.

@acidrod
Copy link
Author

acidrod commented Jul 30, 2023

This PR addresses the Issue #474

…y tests are passing locally but failing on appveyor bchavez#474
@bchavez bchavez force-pushed the master branch 22 times, most recently from 1be8d30 to d0be670 Compare December 22, 2023 18:37
@bchavez bchavez force-pushed the master branch 7 times, most recently from 0b65acc to cc799df Compare December 22, 2023 19:04
Comment on lines +39 to +40
Random rnd = new();
int num = rnd.Next(1000000, 99999999);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't call new Random() in Bogus because it's not deterministic. We'll need to source the rnd from Person.Random to get the randomizer, and then ask for the rnd.Next().

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

Successfully merging this pull request may close these issues.

None yet

2 participants