Skip to content

Commit

Permalink
Fix seed for fakers
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Mar 14, 2020
1 parent cf21842 commit 91a3714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tblfaker/_tblfaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TableFaker:
def __init__(self, locale: Optional[str] = None, seed: Optional[int] = None) -> None:
self.__fake = Factory.create(locale)

if seed:
if seed is not None:
self.__fake.seed(seed)

def generate(
Expand Down

0 comments on commit 91a3714

Please sign in to comment.