From a47ad79afa454192224214a3db2499de12baf93e Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 23 Dec 2017 14:27:30 +0000 Subject: getrandom: fix comment [BZ #22347] * stdlib/getrandom.c (getrandom): Fix comment. * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise. --- sysdeps/unix/sysv/linux/getrandom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/sysv/linux/getrandom.c') diff --git a/sysdeps/unix/sysv/linux/getrandom.c b/sysdeps/unix/sysv/linux/getrandom.c index 25eb6efdd6..31b0e4e79e 100644 --- a/sysdeps/unix/sysv/linux/getrandom.c +++ b/sysdeps/unix/sysv/linux/getrandom.c @@ -22,8 +22,8 @@ #include #ifdef __NR_getrandom -/* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on - success and -1 on failure. */ +/* 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) { -- cgit v1.2.3