diff options
Diffstat (limited to 'src/lib/libc/crypt/arc4random.c')
-rw-r--r-- | src/lib/libc/crypt/arc4random.c | 4 |
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 | } |
189 | DEF_WEAK(arc4random); | ||
189 | 190 | ||
190 | void | 191 | void |
191 | arc4random_buf(void *buf, size_t n) | 192 | arc4random_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 | } |
198 | DEF_WEAK(arc4random_buf); | ||