getentropy(3) Library Functions Manual getentropy(3) getentropy - C (libc, -lc) #include int getentropy(void buffer[.length], size_t length); glibc (. feature_test_macros(7)): getentropy(): _DEFAULT_SOURCE getentropy() length , , buffer. length 256. getentropy() . On success, this function returns zero. On error, -1 is returned, and errno is set to indicate the error. EFAULT , buffer length, . EIO length 256. EIO buffer . ENOSYS getrandom(2), . None. glibc 2.25. OpenBSD. getentropy() getrandom(2). Whereas the glibc wrapper makes getrandom(2) a cancelation point, getentropy() is not a cancelation point. getentropy() ( ). getentropy() , . getentropy() . getrandom(2), urandom(4), random(7) () Azamat Hackimov , Dmitry Bolkhovskikh , Vladislav , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . getentropy(3)