more efficiently generate random number
Merge branch 'master' of https://github.com/confiscate/secret