Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tatsuhiro-t
Copy link
Collaborator

errno might not be initialized to 0, and we may get both rv == -1 and
errno != ENOSYS. This leads to assertion failure. Since
getrandom_linux always returns -1 on failure, checking errno is
useless in this function.

See #336 (comment)

errno might not be initialized to 0, and we may get both rv == -1 and
errno != ENOSYS.  This leads to assertion failure.  Since
getrandom_linux always returns -1 on failure, checking errno is
useless in this function.
@tatsuhiro-t tatsuhiro-t added the bug label Jan 6, 2017
@tatsuhiro-t tatsuhiro-t added this to the v1.31.0 milestone Jan 6, 2017
@tatsuhiro-t tatsuhiro-t merged commit 6abf238 into master Jan 7, 2017
@tatsuhiro-t tatsuhiro-t deleted the fix-getrandom-assertion-failure branch January 7, 2017 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants