*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: getentropy | Section: 3 | Source: FreeBSD | File: getentropy.3.gz
GETENTROPY(3) FreeBSD Library Functions Manual GETENTROPY(3) NAME getentropy - get entropy LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <unistd.h> int getentropy(void *buf, size_t buflen); DESCRIPTION getentropy() fills a buffer with high-quality random data. The maximum buflen permitted is 256 bytes. If it does not produce an error, getentropy() always provides the requested number of bytes of random data. Similar to reading from /dev/urandom just after boot, getentropy() may block until the system has collected enough entropy to seed the CSPRNG. IMPLEMENTATION NOTES The getentropy() function is implemented using getrandom(2). RETURN VALUES Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS getentropy() will succeed unless: [EFAULT] The buf parameter points to an invalid address. [EINVAL] Too many bytes requested. SEE ALSO getrandom(2), arc4random(3), random(4) STANDARDS getentropy() conforms to. HISTORY The getentropy() function appeared in OpenBSD 5.6. The FreeBSD libc compatibility shim first appeared in FreeBSD 12.0. FreeBSD 14.1-RELEASE-p8 January 17, 2025 FreeBSD 14.1-RELEASE-p8

Navigation Options