1. 30

  2. 5

    Also note getentropy(3), which (now?) provides a simpler interface over getrandom(2), guarantees the requested number of bytes (up to 256) will be returned if no error occurs, and has no flags argument. According to the man pages, getrandom is Linux-specific whereas getentropy also exists on OpenBSD, thus being slightly more portable.