aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manual/crypt.texi3
-rw-r--r--stdlib/sys/random.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/manual/crypt.texi b/manual/crypt.texi
index c41b911..af23dd7 100644
--- a/manual/crypt.texi
+++ b/manual/crypt.texi
@@ -301,6 +301,9 @@ booted and the randomness source has not yet been initialized.
@item GRND_NONBLOCK
Instead of blocking, return to the caller immediately if no data is
available.
+
+@item GRND_INSECURE
+Write random data that may not be cryptographically secure.
@end table
Unlike @code{getentropy}, the @code{getrandom} function is a
diff --git a/stdlib/sys/random.h b/stdlib/sys/random.h
index b351ef5..1df6e9b 100644
--- a/stdlib/sys/random.h
+++ b/stdlib/sys/random.h
@@ -25,6 +25,7 @@
/* Flags for use with getrandom. */
#define GRND_NONBLOCK 0x01
#define GRND_RANDOM 0x02
+#define GRND_INSECURE 0x04
__BEGIN_DECLS