Skip to content

Conversation

@theuni
Copy link
Member

@theuni theuni commented Jul 17, 2017

Follow-up from #10335. I can confirm that this fixes my issue when building against a new glibc + old linux headers for back-compat.

@laanwj laanwj added this to the 0.15.0 milestone Jul 17, 2017
@sipa
Copy link
Member

sipa commented Jul 17, 2017

utACK 077d01f

@paveljanik
Copy link
Contributor

utACK 077d01f

@TheBlueMatt
Copy link
Contributor

utACK 077d01f

Copy link
Contributor

@gmaxwell gmaxwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK.

@laanwj laanwj merged commit 077d01f into bitcoin:master Jul 18, 2017
laanwj added a commit that referenced this pull request Jul 18, 2017
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
@laanwj
Copy link
Member

laanwj commented Jul 18, 2017

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OSX also needs getentropy.

Copy link
Member Author

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.

Copy link
Member Author

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.

PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 24, 2019
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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants