mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
UPSTREAM: random: add GRND_INSECURE to return best-effort non-cryptographic bytes
Signed-off-by: Andy Lutomirski <luto@kernel.org> Link: https://lore.kernel.org/r/d5473b56cf1fa900ca4bd2b3fc1e5b8874399919.1577088521.git.luto@kernel.org Signed-off-by: Theodore Ts'o <tytso@mit.edu> (cherry picked from commit 75551dbf112c992bc6c99a972990b3f272247e23) Signed-off-by: Mark Salyzyn <salyzyn@google.com> Bug: 148665638 Change-Id: I1f0bac8752280f988ed5fcc34d361d87f5e86d85
This commit is contained in:
parent
e0577f9c36
commit
1409928950
2 changed files with 11 additions and 2 deletions
|
|
@ -49,8 +49,10 @@ struct rand_pool_info {
|
|||
*
|
||||
* GRND_NONBLOCK Don't block and return EAGAIN instead
|
||||
* GRND_RANDOM Use the /dev/random pool instead of /dev/urandom
|
||||
* GRND_INSECURE Return non-cryptographic random bytes
|
||||
*/
|
||||
#define GRND_NONBLOCK 0x0001
|
||||
#define GRND_RANDOM 0x0002
|
||||
#define GRND_INSECURE 0x0004
|
||||
|
||||
#endif /* _UAPI_LINUX_RANDOM_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue