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

getentropy(2) exists on Linux. I do not know when it was introduced, but my Arch system has it. (I feel as if your comment implies that it is the BSD equivalent to getrandom(2).)


OpenBSD introduced getentropy(2). Since it is a subset of getrandom(2) functionality, glibc added a compatibility wrapper that provides the same ABI.

(FreeBSD only recently added the getrandom(2) syscall and getentropy(3) libc wrapper functions in -CURRENT.)


The getentropy() function first appeared in glibc 2.25.

http://man7.org/linux/man-pages/man3/getentropy.3.html




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

Search: