diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | openbsd-compat/bsd-arc4random.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -14,6 +14,7 @@ | |||
14 | - (djm) [openbsd-compat/bsd-arc4random.c openbsd-compat/openbsd-compat.c] | 14 | - (djm) [openbsd-compat/bsd-arc4random.c openbsd-compat/openbsd-compat.c] |
15 | [configure.ac] Implement arc4random_buf(), import implementation of | 15 | [configure.ac] Implement arc4random_buf(), import implementation of |
16 | arc4random_uniform() from OpenBSD | 16 | arc4random_uniform() from OpenBSD |
17 | - (djm) [openbsd-compat/bsd-arc4random.c] Warning fixes | ||
17 | - (djm) OpenBSD CVS Sync | 18 | - (djm) OpenBSD CVS Sync |
18 | - djm@cvs.openbsd.org 2008/04/13 00:22:17 | 19 | - djm@cvs.openbsd.org 2008/04/13 00:22:17 |
19 | [dh.c sshd.c] | 20 | [dh.c sshd.c] |
@@ -3935,4 +3936,4 @@ | |||
3935 | OpenServer 6 and add osr5bigcrypt support so when someone migrates | 3936 | OpenServer 6 and add osr5bigcrypt support so when someone migrates |
3936 | passwords between UnixWare and OpenServer they will still work. OK dtucker@ | 3937 | passwords between UnixWare and OpenServer they will still work. OK dtucker@ |
3937 | 3938 | ||
3938 | $Id: ChangeLog,v 1.4920 2008/05/19 05:05:07 djm Exp $ | 3939 | $Id: ChangeLog,v 1.4921 2008/05/19 05:26:54 djm Exp $ |
diff --git a/openbsd-compat/bsd-arc4random.c b/openbsd-compat/bsd-arc4random.c index 8bf31e5d3..92e7e7b58 100644 --- a/openbsd-compat/bsd-arc4random.c +++ b/openbsd-compat/bsd-arc4random.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <sys/types.h> | 19 | #include <sys/types.h> |
20 | 20 | ||
21 | #include <string.h> | 21 | #include <string.h> |
22 | #include <stdlib.h> | ||
22 | #include <stdarg.h> | 23 | #include <stdarg.h> |
23 | 24 | ||
24 | #include "log.h" | 25 | #include "log.h" |
@@ -88,7 +89,7 @@ void | |||
88 | arc4random_buf(void *_buf, size_t n) | 89 | arc4random_buf(void *_buf, size_t n) |
89 | { | 90 | { |
90 | size_t i; | 91 | size_t i; |
91 | u_int32_t r; | 92 | u_int32_t r = 0; |
92 | char *buf = (char *)_buf; | 93 | char *buf = (char *)_buf; |
93 | 94 | ||
94 | for (i = 0; i < n; i++) { | 95 | for (i = 0; i < n; i++) { |