⚙️A python script that "cracks" the Xorshift128+ pseudorandom number generator.
Only works on Math.random() in Firefox. But it only requires small changes to make it work in other browsers.
$ pip install -r requirements.txt
Generate 3 or more numbers with Math.random() in Firefox
[Math.random(), Math.random(), Math.random(), Math.random()]
> [ 0.20984993117622008, 0.031103469229328495, 0.6396434426372385, 0.16934810845148796 ]
After that type:
$ python xorshift128plus-cracker.py
+ the 3 numbers that you generated.
Example: $ python xorshift128plus-cracker.py 0.20984993117622008 0.031103469229328495 0.6396434426372385
After that the script will print 15 (this number can be changed) numbers that will be generated next.