History

random: add GRND_INSECURE to return best-effort non-cryptographic bytes

Andy Lutomirski committed 6 years ago

Commit 75551db1 parent c6f1deb2 files · +11 −2Browse files

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

Unified · Split

include/uapi/linux/random.h+2−0
@@ -49,8 +49,10 @@ struct rand_pool_info { · 48 unmodified lines
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 Use the /dev/random pool instead of /dev/urandom
52 * GRND_INSECURE Return non-cryptographic random bytes
52 */53 */
53#define GRND_NONBLOCK 0x000154#define GRND_NONBLOCK 0x0001
54#define GRND_RANDOM 0x000255#define GRND_RANDOM 0x0002
56#define GRND_INSECURE 0x0004
55 57
56#endif /* _UAPI_LINUX_RANDOM_H */58#endif /* _UAPI_LINUX_RANDOM_H */