Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
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
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
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));