Skip to content

Commit e8fd360

Browse files
committed
use os.urandom rather than random.randbytes
1 parent 0226aa0 commit e8fd360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_igzip_threaded.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import gzip
99
import io
1010
import itertools
11-
import random
11+
import os
1212
import tempfile
1313
from pathlib import Path
1414

@@ -83,7 +83,7 @@ def test_threaded_write_error(threads):
8383
with igzip_threaded.open(
8484
io.BytesIO(), "wb", compresslevel=3, threads=threads
8585
) as writer:
86-
writer.write(random.randbytes(1024 * 1024 * 50))
86+
writer.write(os.urandom(1024 * 1024 * 50))
8787
error.match("Compressed output exceeds buffer size")
8888

8989

0 commit comments

Comments
 (0)