From caaed01e90edc41d43334868f14f4f994927b2cd Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 19 May 2008 15:26:54 +1000 Subject: - (djm) [openbsd-compat/bsd-arc4random.c] Warning fixes --- openbsd-compat/bsd-arc4random.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbsd-compat/bsd-arc4random.c') 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 @@ #include #include +#include #include #include "log.h" @@ -88,7 +89,7 @@ void arc4random_buf(void *_buf, size_t n) { size_t i; - u_int32_t r; + u_int32_t r = 0; char *buf = (char *)_buf; for (i = 0; i < n; i++) { -- cgit v1.2.3