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
4949 *
5050 * GRND_NONBLOCK Don't block and return EAGAIN instead
5151 * GRND_RANDOM Use the /dev/random pool instead of /dev/urandom
52+ * GRND_INSECURE Return non-cryptographic random bytes
5253 */
5354 #define GRND_NONBLOCK 0x0001
5455 #define GRND_RANDOM 0x0002
56+#define GRND_INSECURE 0x0004
5557
5658 #endif /* _UAPI_LINUX_RANDOM_H */