summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt/arc4random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/crypt/arc4random.c')
-rw-r--r--src/lib/libc/crypt/arc4random.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c
index 5afc6a15ab..8a4ecc9e89 100644
--- a/src/lib/libc/crypt/arc4random.c
+++ b/src/lib/libc/crypt/arc4random.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: arc4random.c,v 1.53 2015/09/10 18:53:50 bcook Exp $ */ 1/* $OpenBSD: arc4random.c,v 1.54 2015/09/13 08:31:47 guenther Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996, David Mazieres <dm@uun.org> 4 * Copyright (c) 1996, David Mazieres <dm@uun.org>
@@ -186,6 +186,7 @@ arc4random(void)
186 _ARC4_UNLOCK(); 186 _ARC4_UNLOCK();
187 return val; 187 return val;
188} 188}
189DEF_WEAK(arc4random);
189 190
190void 191void
191arc4random_buf(void *buf, size_t n) 192arc4random_buf(void *buf, size_t n)
@@ -194,3 +195,4 @@ arc4random_buf(void *buf, size_t n)
194 _rs_random_buf(buf, n); 195 _rs_random_buf(buf, n);
195 _ARC4_UNLOCK(); 196 _ARC4_UNLOCK();
196} 197}
198DEF_WEAK(arc4random_buf);