Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

OpenBSD's interface is getentropy(), but yeah, basically the same idea! I believe Linux was the second actor and intentionally made getrandom() a superset of the getentropy interface (i.e., no EINTR below 256 bytes).

As a result, writing a getentropy() shim around getrandom is feasible; FreeBSD and Linux (glibc) have done so.



Yes, it was ported from OpenBSD. Ted literally calls it out in the commit:

https://lkml.org/lkml/2014/7/17/145




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: