Before this change, reads from /dev/urandom may result in unspecified behaviour when the user supplies a buffer length that is greater than SSIZE_LEN. (https://linux.die.net/man/2/read)
This PR changes the way we read from /dev/urandom to read in chunks of at most SSIZE_MAX bytes.
Before this change, reads from
/dev/urandom
may result in unspecified behaviour when the user supplies a buffer length that is greater thanSSIZE_LEN
. (https://linux.die.net/man/2/read)This PR changes the way we read from
/dev/urandom
to read in chunks of at mostSSIZE_MAX
bytes.