Skip to content

Commit 1ef5ff8

Browse files
committed
Fix nondeterminism in fasta_to_fastq
1 parent 4679a6e commit 1ef5ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micall/utils/fasta_to_fastq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def simulate_reads(reference: Seq,
5959

6060
for i in range(n_reads):
6161
# Choose a read length uniformly between min_length and max_length.
62-
read_length = random.randint(min_length, max_length)
62+
read_length = rng.randint(min_length, max_length)
6363
# Choose a start index from a fair distribution.
6464
start = next(gen)
6565
end = start + read_length

0 commit comments

Comments
 (0)