sys/random.h: add GRND_INSECURE from linux v5.6
authorSzabolcs Nagy <nsz@port70.net>
Tue, 31 Mar 2020 20:37:23 +0000 (20:37 +0000)
committerRich 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

index 4ee7bf2..59e40ab 100644 (file)
@@ -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);