History

random: ignore GRND_RANDOM in getentropy(2)

The separate blocking pool is going away. Start by ignoring GRND_RANDOM in getentropy(2). This should not materially break any API. Any code that worked without this change should work at least as well with this change.

Andy Lutomirski committed 6 years ago

Commit 48446f11 parent 75551db2 files · +1 −4Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/random.h+1−1
@@ -48,7 +48,7 @@ struct rand_pool_info { · 47 unmodified lines
4848 * Flags for getrandom(2)
4949 *
5050 * GRND_NONBLOCK Don't block and return EAGAIN instead
51− * GRND_RANDOM Use the /dev/random pool instead of /dev/urandom
51+ * GRND_RANDOM No effect
5252 * GRND_INSECURE Return non-cryptographic random bytes
5353 */
5454 #define GRND_NONBLOCK 0x0001