diff --git a/compiler/characterizer/functional.py b/compiler/characterizer/functional.py index 846c6d94..5730b644 100644 --- a/compiler/characterizer/functional.py +++ b/compiler/characterizer/functional.py @@ -374,7 +374,7 @@ class functional(simulation): def gen_addr(self): """ Generates a random address value to write to. """ if self.valid_addresses: - random_value = random.sample(self.valid_addresses, 1)[0] + random_value = random.sample(list(self.valid_addresses), 1)[0] else: random_value = random.randint(0, self.max_address) addr_bits = binary_repr(random_value, self.bank_addr_size)