Skip to content

logankbmein/dev-random-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages