Make generateRandomBytes less biased.
Merge branch 'master' into random