summaryrefslogtreecommitdiff
path: root/test2.py
blob: 69c8ae1080a0dda262d16062da9fe1be005af32b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3

from rfc1982_serial_number import Serial
from random import randint
from subprocess import run

for test in range(10000):
    i1 = randint(0, Serial.modulus - 1)
    i2 = randint(0, Serial.modulus - 1)
    cmd = "./rfc1982_serial_number.py", str(i1), str(i2)
    print(f"\nTest: {test}: {cmd[0]} {cmd[1]} {cmd[2]}")
    run(cmd)