TimeLord is a Python tool that reverse-engineers CPython's Mersenne Twister PRNG to find integer seeds producing desired random sequences, such as 100+ consecutive coin flip heads. It demonstrates that statistically improbable PRNG outputs can be deliberately constructed using ordinary seeding, with no monkey-patching or RNG modification required.
Background
CPython's built-in random module uses the Mersenne Twister PRNG, which is not cryptographically secure. This project demonstrates practical seed inversion for MT19937, relevant to security discussions around Python's RNG predictability.
- Source
- Lobsters
- Published
- Sep 28, 2026 at 11:23 PM
- Score
- 5.0 / 10