-
Notifications
You must be signed in to change notification settings - Fork 38.7k
random: only use getentropy on openbsd #10855
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
Conversation
|
utACK 077d01f |
|
utACK 077d01f |
|
utACK 077d01f |
gmaxwell
left a comment
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.
utACK.
077d01f random: only use getentropy on openbsd (Cory Fields) Pull request description: Follow-up from #10335. I can confirm that this fixes my issue when building against a new glibc + old linux headers for back-compat. Tree-SHA512: a0fcf26995fbd3636f970e729a172c6e1d7c0de371e703f0653cd9776600f438ec43acd2b1eb92f2678a011968da8fbbeef8a54599434851f4c6ffe78291c172
|
Tested on OpenBSD that getentropy() is still used. ACK 077d01f |
| /* On OpenBSD this can return up to 256 bytes of entropy, will return an | ||
| * error if more are requested. | ||
| * The call cannot return less than the requested number of bytes. | ||
| getentropy is explicitly limited to openbsd here, as a similar (but not |
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.
OSX also needs getentropy.
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.
hmm? I don't see any reference for that. Afaik everything for osx is just a wrapper around /dev/[u]random anyway.
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.
Ignore the above. See discussion in #10301.
077d01f random: only use getentropy on openbsd (Cory Fields) Pull request description: Follow-up from bitcoin#10335. I can confirm that this fixes my issue when building against a new glibc + old linux headers for back-compat. Tree-SHA512: a0fcf26995fbd3636f970e729a172c6e1d7c0de371e703f0653cd9776600f438ec43acd2b1eb92f2678a011968da8fbbeef8a54599434851f4c6ffe78291c172
Follow-up from #10335. I can confirm that this fixes my issue when building against a new glibc + old linux headers for back-compat.