Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix logic error reading random bytes from /dev/urandom
Fixes a bug introduced in c2be7e6 Previously, this would return those bytes if the number of bytes read was **less than** the number of bytes this was trying to read. In practice, I believe this would mean bytes from /dev/urandom would never get used. (Noticed when upgrading phpseclib)
- Loading branch information
41eb0d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #1466