summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-05-19 06:47:37 +0200
committerDamien Miller <djm@mindrot.org>2008-05-19 06:47:37 +0200
commita4be7c23fdcf8a1da5420068dc4bd4db45af9c9c (patch)
tree30791da826e91a68016c4a969d8d924fb9778312 /openbsd-compat/openbsd-compat.h
parent - djm@cvs.openbsd.org 2008/04/05 02:46:02 (diff)
downloadopenssh-a4be7c23fdcf8a1da5420068dc4bd4db45af9c9c.tar.xz
openssh-a4be7c23fdcf8a1da5420068dc4bd4db45af9c9c.zip
- (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 '')
-rw-r--r--openbsd-compat/openbsd-compat.h10
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 @@
-/* $Id: openbsd-compat.h,v 1.43 2007/06/25 12:15:13 dtucker Exp $ */
+/* $Id: openbsd-compat.h,v 1.44 2008/05/19 04:47:37 djm Exp $ */
/*
* Copyright (c) 1999-2003 Damien Miller. All rights reserved.
@@ -151,6 +151,14 @@ unsigned int arc4random(void);
void arc4random_stir(void);
#endif /* !HAVE_ARC4RANDOM */
+#ifndef HAVE_ARC4RANDOM_BUF
+void arc4random_buf(void *, size_t);
+#endif
+
+#ifndef HAVE_ARC4RANDOM_UNIFORM
+u_int32_t arc4random_uniform(u_int32_t);
+#endif
+
#ifndef HAVE_ASPRINTF
int asprintf(char **, const char *, ...);
#endif