- (djm) [openbsd-compat/bsd-arc4random.c] Warning fixes
This commit is contained in:
parent
b84886ba3e
commit
caaed01e90
|
@ -14,6 +14,7 @@
|
||||||
- (djm) [openbsd-compat/bsd-arc4random.c openbsd-compat/openbsd-compat.c]
|
- (djm) [openbsd-compat/bsd-arc4random.c openbsd-compat/openbsd-compat.c]
|
||||||
[configure.ac] Implement arc4random_buf(), import implementation of
|
[configure.ac] Implement arc4random_buf(), import implementation of
|
||||||
arc4random_uniform() from OpenBSD
|
arc4random_uniform() from OpenBSD
|
||||||
|
- (djm) [openbsd-compat/bsd-arc4random.c] Warning fixes
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
- djm@cvs.openbsd.org 2008/04/13 00:22:17
|
- djm@cvs.openbsd.org 2008/04/13 00:22:17
|
||||||
[dh.c sshd.c]
|
[dh.c sshd.c]
|
||||||
|
@ -3935,4 +3936,4 @@
|
||||||
OpenServer 6 and add osr5bigcrypt support so when someone migrates
|
OpenServer 6 and add osr5bigcrypt support so when someone migrates
|
||||||
passwords between UnixWare and OpenServer they will still work. OK dtucker@
|
passwords between UnixWare and OpenServer they will still work. OK dtucker@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.4920 2008/05/19 05:05:07 djm Exp $
|
$Id: ChangeLog,v 1.4921 2008/05/19 05:26:54 djm Exp $
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
@ -88,7 +89,7 @@ void
|
||||||
arc4random_buf(void *_buf, size_t n)
|
arc4random_buf(void *_buf, size_t n)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
u_int32_t r;
|
u_int32_t r = 0;
|
||||||
char *buf = (char *)_buf;
|
char *buf = (char *)_buf;
|
||||||
|
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
|
|
Loading…
Reference in New Issue