r/programming • u/txdv • Aug 16 '14
Linux adds getrandom
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895
143
Upvotes
r/programming • u/txdv • Aug 16 '14
50
u/usernamenottaken Aug 16 '14
Now that's a good commit message.
23
u/kiwipete Aug 16 '14
This is in response to the request made by the LibreSSL people (i.e. the people who also bring us OpenBSD and OpenSSH) to help them help SSL be more secure on Linux. Their longstanding development of OpenSSH alone is a huge contribution to the Free infrastructure of the webbernets. Their stewardship of LibreSSL will, I'm sure, be no less solid.
In addition to renewing my EFF membership this year, I'm also planning to throw some dollars to the OpenBSD project out of appreciation for all they've done to benefit the broader tech community. Even if you're like me and haven't used OpenBSD in a while (or ever) I think there are worse places to send money.
7
u/matthieum Aug 16 '14
Uh, what's so special about 277 it was not used ?
6
u/muungwana Aug 16 '14
couldnt that be mitigated by opening the random number generator device at the initialization stage of the library and then holding on to the file descriptor?
It could also be more efficient as it will eliminate the need for open() and close() calls everytime random numbers are requested.
5
u/bradfitz Aug 16 '14
Go support: https://code.google.com/p/go/source/detail?r=a70c897599c4e6bbefade9e37345f9dee56810d7#
6
u/rotek Aug 16 '14
So why haven't they called it getentropy too?
0
u/lhggghl Aug 17 '14
Maybe people should stop writing code that's "resilient" against a non-working system. I would never trust such code.