add getentropy function
authorRich Felker <dalias@aerifal.cx>
Fri, 23 Feb 2018 07:54:01 +0000 (02:54 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 23 Feb 2018 07:57:52 +0000 (02:57 -0500)
commit82f176803ae07e34229906d5c7c62889e665dc97
tree8ba87ec513170697964a04c7502a6abb6b8aacc4
parente20658209177667e490c661dfd35b976749ef3f7
add getentropy function

based loosely on patch by Hauke Mehrtens; converted to wrap the public
API of the underlying getrandom function rather than direct syscalls,
so that if/when a fallback implementation of getrandom is added it
will automatically get picked up by getentropy too.
include/unistd.h
src/misc/getentropy.c [new file with mode: 0644]