projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f4aa78
)
sys/random.h: add GRND_INSECURE from linux v5.6
author
Szabolcs Nagy
<nsz@port70.net>
Tue, 31 Mar 2020 20:37:23 +0000
(20:37 +0000)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 9 Sep 2020 21:20:27 +0000
(17:20 -0400)
added in
linux commit
75551dbf112c992bc6c99a972990b3f272247e23
random: add GRND_INSECURE to return best-effort non-cryptographic bytes
include/sys/random.h
patch
|
blob
|
history
diff --git
a/include/sys/random.h
b/include/sys/random.h
index
4ee7bf2
..
59e40ab
100644
(file)
--- a/
include/sys/random.h
+++ b/
include/sys/random.h
@@
-10,6
+10,7
@@
extern "C" {
#define GRND_NONBLOCK 0x0001
#define GRND_RANDOM 0x0002
+#define GRND_INSECURE 0x0004
ssize_t getrandom(void *, size_t, unsigned);