mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-15 04:20:28 +08:00
8eaf34eda2
* include/sys/random.h (__getrandom): Add hidden prototype. * stdlib/getrandom.c (getrandom): Rename to hidden definition __getrandom. Add weak alias. * sysdeps/mach/hurd/getrandom.c (getrandom): Likewise. * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise. * sysdeps/mach/hurd/getentropy.c (getentropy): Use __getrandom instead of getrandom.
12 lines
253 B
C
12 lines
253 B
C
#ifndef _SYS_RANDOM_H
|
|
#include <stdlib/sys/random.h>
|
|
|
|
# ifndef _ISOMAC
|
|
|
|
extern ssize_t __getrandom (void *__buffer, size_t __length,
|
|
unsigned int __flags) __wur;
|
|
libc_hidden_proto (__getrandom)
|
|
|
|
# endif /* !_ISOMAC */
|
|
#endif
|