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

[Technical Selection] Will there be duplicates of IP addresses generated in bulk using Faker in a single session? #2079

Closed
Kendr1ckFu opened this issue Jul 31, 2024 · 2 comments

Comments

@Kendr1ckFu
Copy link

  • Faker version:26.0.0
  • OS:Windows 11

I'm a Python indie developer who has developed a small tool to handle IP addresses, and when testing it, I need a large amount (probably millions of magnitudes) of random non-repeating IP address data for each test session, and I've observed that the Faker library generates random IP addresses, so wondering if it generates duplicate IP addresses (in a single session).

Best, Kendrick

Steps to reproduce

No need

Expected behavior

No need

Actual behavior

No need

@stefan6419846
Copy link
Contributor

faker is able to generate unique values as per the docs: https://faker.readthedocs.io/en/master/index.html#unique-values

@Kendr1ckFu
Copy link
Author

faker is able to generate unique values as per the docs: https://faker.readthedocs.io/en/master/index.html#unique-values

Great, I'm going to enable it in my test environment, thanks a lot!

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

2 participants