diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2017-12-23 14:27:30 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2017-12-23 14:27:30 +0000 |
commit | a47ad79afa454192224214a3db2499de12baf93e (patch) | |
tree | 0fa03bf358ccf2de7972d57a9e6759adb577add8 /stdlib | |
parent | f5c558f3ecdf1d635f5614f5b49cd630786df46a (diff) | |
download | glibc-a47ad79afa454192224214a3db2499de12baf93e.tar.gz |
getrandom: fix comment [BZ #22347]
* stdlib/getrandom.c (getrandom): Fix comment.
* sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/getrandom.c | 4 |
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) { |