test2.py 353 B

123456789101112
  1. #!/usr/bin/env python3
  2. from rfc1982_serial_number import Serial
  3. from random import randint
  4. from subprocess import run
  5. for test in range(10000):
  6. i1 = randint(0, Serial.modulus - 1)
  7. i2 = randint(0, Serial.modulus - 1)
  8. cmd = "./rfc1982_serial_number.py", str(i1), str(i2)
  9. print(f"\nTest: {test}: {cmd[0]} {cmd[1]} {cmd[2]}")
  10. run(cmd)