Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gzhttp: Fix crypto/rand.Read usage (#770)
rand.Reader.Read(p) is allowed to return < len(p) bytes and no error, and the Mac implementation sometimes does. I don't know if it will do that for len(p) == 4, but rand.Read is safer in any case.
- Loading branch information