From e13cc76ac35bc4d674265b4b7f314db2057e008e Mon Sep 17 00:00:00 2001 From: Bugra Onal Date: Tue, 23 May 2023 10:58:17 -0700 Subject: [PATCH] Fix Python 3.11 random change --- compiler/characterizer/functional.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)