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
|
# generate & set PSW
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
p.psw = random.randint(0, 65536)
|
p.psw = random.randint(0, 65536) & 0o174377
|
||||||
break
|
break
|
||||||
except PDPTraps.ReservedInstruction as ri:
|
except PDPTraps.ReservedInstruction as ri:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -164,7 +164,7 @@ class test_generator:
|
||||||
|
|
||||||
stop = False
|
stop = False
|
||||||
while True:
|
while True:
|
||||||
psw = random.randint(0, 65536)
|
psw = random.randint(0, 65536) & 0o174377
|
||||||
name = f'/mnt/temp/bla-{psw:06o}.json'
|
name = f'/mnt/temp/bla-{psw:06o}.json'
|
||||||
if os.path.isfile(name):
|
if os.path.isfile(name):
|
||||||
print(f'skipping {name}')
|
print(f'skipping {name}')
|
||||||
|
|
Loading…
Add table
Reference in a new issue