diff options
author | Damien Miller <djm@mindrot.org> | 2008-05-19 14:47:37 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-05-19 14:47:37 +1000 |
commit | a4be7c23fdcf8a1da5420068dc4bd4db45af9c9c (patch) | |
tree | 30791da826e91a68016c4a969d8d924fb9778312 /openbsd-compat/openbsd-compat.h | |
parent | 25434de4606924a31016e42728c4acdf6de90cc7 (diff) |
- (djm) [openbsd-compat/bsd-arc4random.c openbsd-compat/openbsd-compat.c]
[configure.ac] Implement arc4random_buf(), import implementation of
arc4random_uniform() from OpenBSD
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 6406af19d..eb48b362b 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: openbsd-compat.h,v 1.43 2007/06/25 12:15:13 dtucker Exp $ */ | 1 | /* $Id: openbsd-compat.h,v 1.44 2008/05/19 04:47:37 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1999-2003 Damien Miller. All rights reserved. | 4 | * Copyright (c) 1999-2003 Damien Miller. All rights reserved. |
@@ -151,6 +151,14 @@ unsigned int arc4random(void); | |||
151 | void arc4random_stir(void); | 151 | void arc4random_stir(void); |
152 | #endif /* !HAVE_ARC4RANDOM */ | 152 | #endif /* !HAVE_ARC4RANDOM */ |
153 | 153 | ||
154 | #ifndef HAVE_ARC4RANDOM_BUF | ||
155 | void arc4random_buf(void *, size_t); | ||
156 | #endif | ||
157 | |||
158 | #ifndef HAVE_ARC4RANDOM_UNIFORM | ||
159 | u_int32_t arc4random_uniform(u_int32_t); | ||
160 | #endif | ||
161 | |||
154 | #ifndef HAVE_ASPRINTF | 162 | #ifndef HAVE_ASPRINTF |
155 | int asprintf(char **, const char *, ...); | 163 | int asprintf(char **, const char *, ...); |
156 | #endif | 164 | #endif |