Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 780 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 780 Bytes

Summary

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.

Usage

  1. git clone this repo
  2. cd dev-random-clone/
  3. Install the sseclient library: pip install sseclient
  4. python rand.py

Notes

  • Python version: 2.7