summaryrefslogtreecommitdiff
path: root/csrand
AgeCommit message (Collapse)Author
2014-05-28Change the weighted distribution algorithm be uniform.Yawning Angel
The old way was biasted towards the earlier values. Thanks to asn for pointing this out and suggesting an alternative. As an additional tweak, do not reuse the drbg seed when calculating the IAT distribution, but instead run the seed through SHA256 first, for extra tinfoil goodness.
2014-05-26Use io.ReadFull in places where it is appropriate.Yawning Angel
2014-05-24Don't use math/big when generating random numbers.Yawning Angel
2014-05-24Move utils.go to csrand/csrand.go, and clean up the interface.Yawning Angel
All of the obfs4 code except unit tests now uses the csrand wrapper routines.