Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
start using reproducible random numbers #98
Currently we have Travis running random.random() to determine if someone has won. This of course gives different values each time you run it. This is basically fine, but it would be better to use a hash of something that (a) we all can verify and (b) we can't predict. Then we don't have to trust Travis or worry about people re-running Travis builds.
This PR switches us to using the hash of the merge commit as our source of randomness.
As a sanity check on the math I generated the random numbers corresponding to the 194 commits we have on master, to see that it really does give the full range of values: