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

Config.random should be reset when re-initializing Faker instance? #6

Closed
serpro69 opened this issue Sep 30, 2019 · 1 comment
Closed

Comments

@serpro69
Copy link
Owner

Currently the following code will fail:

Faker.Config.random = Random(42)
Faker.init()
val rand1 = Faker.Config.random

Faker.init()
val rand2 = Faker.Config.random

rand2 shouldNotBe rand1

Need to decide if to re-set the Config.random when re-initializing Faker or letting the user decide

@serpro69
Copy link
Owner Author

serpro69 commented Oct 2, 2019

Closed with a0ebb97

@serpro69 serpro69 closed this as completed Oct 2, 2019
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