Provide a custom random number generator for Faker #2308
Replies: 4 comments 2 replies
-
How about |
Beta Was this translation helpful? Give feedback.
0 replies
-
RandomGenerator 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We currently have the issue #2195 which asks for a way to provide a custom random number generator to Faker. Currently Faker uses an implementation of Mersenne Twister.
We totally see the need to sometimes provide your own implementation over our internal one. Because of that we want to make it possible to do exactly that.
But as all good developers, we do have problems with naming things as well.
Our first instinct was to name it
PRNG
, as it is the technical correct term. But we got concerened thatPRNG
might not be as intuitive to most developers.RNG
on the other hand side might be more intuitve, but is technically not correct.We also thought about naming it
random
. The reason being that the provided value is used to provide all the "randomness" in Faker.If you have any other suggestions, we encourage you to leave a comment and share your insight. Every kind of feedback is welcome as it contributes to the ongoing enhancement of Faker.
8 votes ·
Beta Was this translation helpful? Give feedback.
All reactions