-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Bug] importing "Litestar" somehow makes "Faker" Not Random anymore #1889
Comments
Given the litestar maintainer comment in the linked issue, what would be your desired solution for faker? I do not see faker ensuring compatibility with each third-party package which might "mess" with the seeding automatically. |
This is indeed not an issue on your end but ours! |
well, no exactly. The issue is that faker only allows global configuration - rather than a per Faker() instance configuration of randomness. When we seed random we do random.Random rather than the global randomness. |
Is |
Lol, I was sure this is depracted. Lemme test |
Faker is working fine but when Litestar is imported, it's not random anymore. Same result/output every time.
Steps to reproduce
Expected behavior (by removing
import litestar
)Random output all the time
7442b46046a7c2d7ca080483a0d45ad4
a87b76986a9afbb9da63dde9ed4d2495
6924bc922dd1db07440ec3298c42afb8
Actual behavior (same environment)
Same every time. for all the functions
9fc4f6348d3311fa3376be5aa395877a
9fc4f6348d3311fa3376be5aa395877a
9fc4f6348d3311fa3376be5aa395877a
The text was updated successfully, but these errors were encountered: