|
@@ -0,0 +1,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)
|