-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential improvements to use of /dev/random
on Linux/Android
#451
Comments
|
|
|
|
It seems like they also have methods in there for |
I don't think we should spend too much effort on the fallback path trying to handle every possible edge case. This path is quite rare in practice and becomes even rarer with every passing day. The current code works fine and we do not have any complains from users.
Removal of the EAGAIN check sounds reasonable. I am not sure we can reasonably handle ENOMEM, so we probably should just return it.
IIUC it mostly happens with network devices. The
There is also a caveat about "other circumstances", but I couldn't find anything that applies to "virtual" files like
I think this is already sufficiently addressed in the "early boot" section.
I think we should just move responsibility for this to |
ENOMEM
and neverEAGAIN
. Since this code is Linux-specific, should we remove theEAGAIN
case in the poll loop? Should we replace it with anENOMEM
case?getrandom
-syscall-capable Linux versions, are such spurious readiness notifications possible? If so, this would be counter to the goal of polling but not reading/dev/random
.The text was updated successfully, but these errors were encountered: