tna0y/Python-random-module-cracker

randcrack doesn't work using too many requests

Nuliel opened this issue · 1 comments

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.

tna0y commented

The issue has been fixed in the latest update thanks to @mcfx