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:
|
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