forked from M-Labs/artiq
scan: fix RandomScan seeding
This commit is contained in:
parent
e8c5cb55cb
commit
62068da232
|
@ -103,7 +103,7 @@ class RandomScan(ScanObject):
|
|||
if seed is None:
|
||||
rf = random.random
|
||||
else:
|
||||
rf = Random(seed).random
|
||||
rf = random.Random(seed).random
|
||||
random.shuffle(self.sequence, rf)
|
||||
|
||||
@portable
|
||||
|
|
Loading…
Reference in New Issue