Skip to content

Commit

Permalink
scope seed
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Jul 26, 2024
1 parent fa372ed commit f1391d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_output_sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import datetime

SEED = 0
random.seed(SEED)


def _generate_random_datetime() -> datetime.datetime:
Expand All @@ -25,6 +24,8 @@ def _generate_random_datetime() -> datetime.datetime:

def _generate_random_datetimes(number_of_elements: int) -> list[datetime.datetime]:
"""Generate random datetimes for testing."""
random.seed(SEED)

random_datetimes = [_generate_random_datetime() for _ in range(number_of_elements)]
return random_datetimes

Expand Down

0 comments on commit f1391d1

Please sign in to comment.