randcrack doesn't work using too many requests
Nuliel opened this issue · 1 comments
Nuliel commented
Hello,
I noticed that predictor doesn't work on getrandbits when we request too many requests. You can see that using
#!/bin/env python3
import random, time
from randcrack import RandCrack
random.seed(time.time())
rc = RandCrack()
for i in range(624):
rc.submit(random.getrandbits(32))
# Could be filled with random.randint(0,4294967294) or random.randrange(0,4294967294)
for i in range(15000):
if random.getrandbits(32) != rc.predict_getrandbits(32):
print("not ok, i = ", i)
I installed using pip3 so I've the last version.