Skip to content

Commit

Permalink
Seed the rng
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Jul 25, 2023
1 parent 1cf3c3b commit 312501d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/cudf/cudf/tests/text/test_text_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,8 @@ def _make_list_of_strings_of_random_length(


def test_jaccard_index_random_strings():
# Seed the rng before random string generation.
random.seed(42)
num_strings = 100
jaccard_width = 5
common_strings = _make_list_of_strings_of_random_length(
Expand Down

0 comments on commit 312501d

Please sign in to comment.