summaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/getrandom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/getrandom.c b/stdlib/getrandom.c
index b2a83c2db7..268b0e43a0 100644
--- a/stdlib/getrandom.c
+++ b/stdlib/getrandom.c
@@ -19,8 +19,8 @@
#include <sys/random.h>
#include <errno.h>
-/* Write LENGTH bytes of randomness starting at BUFFER. Return the
- number of bytes written, or -1 on error. */
+/* Write up to LENGTH bytes of randomness starting at BUFFER.
+ Return the number of bytes written, or -1 on error. */
ssize_t
getrandom (void *buffer, size_t length, unsigned int flags)
{