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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -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 instead | 50 | * 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 |
| 52 | * GRND_INSECURE Return non-cryptographic random bytes | 52 | * GRND_INSECURE Return non-cryptographic random bytes |
| 53 | */ | 53 | */ |
| 54 | #define GRND_NONBLOCK 0x0001 | 54 | #define GRND_NONBLOCK 0x0001 |