summaryrefslogtreecommitdiff
path: root/stdlib/getrandom.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/getrandom.c')
-rw-r--r--stdlib/getrandom.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/stdlib/getrandom.c b/stdlib/getrandom.c
index 45234bea17..02b827c63c 100644
--- a/stdlib/getrandom.c
+++ b/stdlib/getrandom.c
@@ -1,5 +1,5 @@
/* Stub for getrandom.
- Copyright (C) 2016-2018 Free Software Foundation, Inc.
+ Copyright (C) 2016-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -14,7 +14,7 @@
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
+ <https://www.gnu.org/licenses/>. */
#include <sys/random.h>
#include <errno.h>
@@ -22,10 +22,12 @@
/* 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)
+__getrandom (void *buffer, size_t length, unsigned int flags)
{
__set_errno (ENOSYS);
return -1;
}
-
stub_warning (getrandom)
+
+libc_hidden_def (__getrandom)
+weak_alias (__getrandom, getrandom)