Since /dev/random is the closest thing to "true" randomness on a computer, and using any higher-level PRNG would be recycling the same source entropy, I thought I would have some fun and use a live stream of recent wiki changes to emulate entropy and use as the input to a hash chain (similar to what dev/urandom does with /dev/random/'s entropy pool). The SSEClient provides a stream of JSON messages which I convert to unicode and mix with the seed. I use the current epoc time, concatenated with a random num from /dev/urandom, as my initial seed, and then use each subsequent hash as the new seed.
git clonethis repocd dev-random-clone/- Install the sseclient library:
pip install sseclient python rand.py
Notes
- Python version: 2.7