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
48 * Flags for getrandom(2)48 * Flags for getrandom(2)
49 *49 *
50 * GRND_NONBLOCK Don't block and return EAGAIN instead50 * GRND_NONBLOCK Don't block and return EAGAIN instead
51 * GRND_RANDOM Use the /dev/random pool instead of /dev/urandom51 * GRND_RANDOM No effect
52 * GRND_INSECURE Return non-cryptographic random bytes52 * GRND_INSECURE Return non-cryptographic random bytes
53 */53 */
54#define GRND_NONBLOCK 0x000154#define GRND_NONBLOCK 0x0001