summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/rand.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-13 08:31:47 +0000
committerguenther <guenther@openbsd.org>2015-09-13 08:31:47 +0000
commit0d943ef019900239de431dfc98899a9f48f183de (patch)
tree06bd726953f00a49bbdecc573865154b167b1291 /lib/libc/stdlib/rand.c
parentOn show the ps/o output and ddb.html blurb once, so that we don't get them (diff)
downloadwireguard-openbsd-0d943ef019900239de431dfc98899a9f48f183de.tar.xz
wireguard-openbsd-0d943ef019900239de431dfc98899a9f48f183de.zip
Wrap <stdlib.h> so that calls go direct and the symbols not in the
C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
Diffstat (limited to 'lib/libc/stdlib/rand.c')
-rw-r--r--lib/libc/stdlib/rand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdlib/rand.c b/lib/libc/stdlib/rand.c
index f163581e8d7..7054b81c647 100644
--- a/lib/libc/stdlib/rand.c
+++ b/lib/libc/stdlib/rand.c
@@ -39,6 +39,7 @@ rand_r(u_int *seed)
*seed = *seed * 1103515245 + 12345;
return (*seed % ((u_int)RAND_MAX + 1));
}
+DEF_WEAK(rand_r);
#if defined(APIWARN)
__warn_references(rand_r,