bit 8-10 of the PSW should be ignored
This commit is contained in:
parent
a908c72761
commit
c8185cdd5e
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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}')
|
||||
|
|
Loading…
Add table
Reference in a new issue