diff --git a/artiq/language/scan.py b/artiq/language/scan.py index 2ba8ef2d4..e29748014 100644 --- a/artiq/language/scan.py +++ b/artiq/language/scan.py @@ -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