mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
getrandom: fix comment [BZ #22347]
* stdlib/getrandom.c (getrandom): Fix comment. * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
This commit is contained in:
parent
f5c558f3ec
commit
a47ad79afa
@ -1,3 +1,9 @@
|
|||||||
|
2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
|
||||||
|
|
||||||
|
[BZ #22347]
|
||||||
|
* stdlib/getrandom.c (getrandom): Fix comment.
|
||||||
|
* sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
|
||||||
|
|
||||||
2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
|
2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
|
||||||
|
|
||||||
[BZ #21161]
|
[BZ #21161]
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
#include <sys/random.h>
|
#include <sys/random.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
/* Write LENGTH bytes of randomness starting at BUFFER. Return the
|
/* Write up to LENGTH bytes of randomness starting at BUFFER.
|
||||||
number of bytes written, or -1 on error. */
|
Return the number of bytes written, or -1 on error. */
|
||||||
ssize_t
|
ssize_t
|
||||||
getrandom (void *buffer, size_t length, unsigned int flags)
|
getrandom (void *buffer, size_t length, unsigned int flags)
|
||||||
{
|
{
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
#include <sysdep-cancel.h>
|
#include <sysdep-cancel.h>
|
||||||
|
|
||||||
#ifdef __NR_getrandom
|
#ifdef __NR_getrandom
|
||||||
/* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on
|
/* Write up to LENGTH bytes of randomness starting at BUFFER.
|
||||||
success and -1 on failure. */
|
Return the number of bytes written, or -1 on error. */
|
||||||
ssize_t
|
ssize_t
|
||||||
getrandom (void *buffer, size_t length, unsigned int flags)
|
getrandom (void *buffer, size_t length, unsigned int flags)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user