mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-12 12:03:35 +08:00
scan: fix RandomScan seeding
This commit is contained in:
parent
e8c5cb55cb
commit
62068da232
@ -103,7 +103,7 @@ class RandomScan(ScanObject):
|
|||||||
if seed is None:
|
if seed is None:
|
||||||
rf = random.random
|
rf = random.random
|
||||||
else:
|
else:
|
||||||
rf = Random(seed).random
|
rf = random.Random(seed).random
|
||||||
random.shuffle(self.sequence, rf)
|
random.shuffle(self.sequence, rf)
|
||||||
|
|
||||||
@portable
|
@portable
|
||||||
|
Loading…
Reference in New Issue
Block a user