From c8185cdd5e0d7337043ceeff593eef0794bcffb6 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 31 Mar 2024 21:56:11 +0200 Subject: [PATCH] bit 8-10 of the PSW should be ignored --- json/produce-json.py | 2 +- json/produce-json2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/json/produce-json.py b/json/produce-json.py index 31314ad..f985a27 100755 --- a/json/produce-json.py +++ b/json/produce-json.py @@ -113,7 +113,7 @@ class test_generator: # generate & set PSW while True: try: - p.psw = random.randint(0, 65536) + p.psw = random.randint(0, 65536) & 0o174377 break except PDPTraps.ReservedInstruction as ri: pass diff --git a/json/produce-json2.py b/json/produce-json2.py index d6a6f42..a2082f7 100755 --- a/json/produce-json2.py +++ b/json/produce-json2.py @@ -164,7 +164,7 @@ class test_generator: stop = False while True: - psw = random.randint(0, 65536) + psw = random.randint(0, 65536) & 0o174377 name = f'/mnt/temp/bla-{psw:06o}.json' if os.path.isfile(name): print(f'skipping {name}')