The output of Python's random.randbytes function is predictable. Here's a
demo of that.
- Save the output of
mersenne.py. - Delete the last 10 elements of that output.
- Feed that truncated output to
mersenne_breaker(cargo run). - The output of
mersenne_breakeris the same as the 10 elements you deleted.
Tested on Python 3.9.