From: Szabolcs Nagy Date: Tue, 31 Mar 2020 20:37:23 +0000 (+0000) Subject: sys/random.h: add GRND_INSECURE from linux v5.6 X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=3da18e6951076079e0cd8efe9db2f2fdbc049286 sys/random.h: add GRND_INSECURE from linux v5.6 added in linux commit 75551dbf112c992bc6c99a972990b3f272247e23 random: add GRND_INSECURE to return best-effort non-cryptographic bytes --- diff --git a/include/sys/random.h b/include/sys/random.h index 4ee7bf2c..59e40ab8 100644 --- 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);