use the shuffle method of Random instead · zecode/pre-commit@e120828 · GitHub
Skip to content

Commit e120828

Browse files
committed
use the shuffle method of Random instead
1 parent d71699d commit e120828

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions

pre_commit/languages/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
if TYPE_CHECKING:
1919
from typing import NoReturn
2020

21-
FIXED_RANDOM_SEED = 1542676186
21+
FIXED_RANDOM_SEED = 1542676187
2222

2323

2424
def run_setup_cmd(prefix: Prefix, cmd: Tuple[str, ...]) -> None:
@@ -92,7 +92,7 @@ def _shuffled(seq: Sequence[str]) -> List[str]:
9292
fixed_random.seed(FIXED_RANDOM_SEED, version=1)
9393

9494
seq = list(seq)
95-
random.shuffle(seq, random=fixed_random.random)
95+
fixed_random.shuffle(seq)
9696
return seq
9797

9898

tests/languages/helpers_test.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)