We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb98b61 commit ce98d84Copy full SHA for ce98d84
1 file changed
faker/proxy.py
@@ -185,10 +185,10 @@ def _select_factory(self, method_name: str) -> Factory:
185
return factory
186
187
def _select_factory_distribution(self, factories, weights):
188
- return choices_distribution(factories, weights, random, length=1)[0]
+ return choices_distribution(factories, weights, self.factories[0].random, length=1)[0]
189
190
def _select_factory_choice(self, factories):
191
- return random.choice(factories)
+ return self._factories[0].random.choice(factories)
192
193
def _map_provider_method(self, method_name: str) -> tuple[list[Factory], list[float] | None]:
194
"""
0 commit comments