Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
crypto/rand: cap getrandom reads to ~32 MB per call on Linux #20877
What version of Go are you using (
changed the title from
crypto/rand reads excessive amounts of entropy for very large requests.
crypto/rand: cap getrandom reads to ~32 MB per call on Linux
Jul 1, 2017
I just attended the Gophercon Contributor Workshop and thought this might be a manageable fix to take on.
I was looking around
The syscall definition delegates to
nbytes = min_t(size_t, nbytes, INT_MAX >> (ENTROPY_SHIFT + 3));