diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-01-07 11:10:17 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-01-07 11:10:17 +0000 |
| commit | fb7dd0a77c4413c791171474efe134e54c68fecb (patch) | |
| tree | 4d82fdff6bf3c1a34f095058216da4665a796298 /crypto/openssh/openbsd-compat/bsd-arc4random.c | |
| parent | 221552e4906daa73f4284856c5eebccb388b3869 (diff) | |
| parent | d95e11bf7e5a59b5c3f81bd8dfc2918ee7d3bada (diff) | |
Notes
Diffstat (limited to 'crypto/openssh/openbsd-compat/bsd-arc4random.c')
| -rw-r--r-- | crypto/openssh/openbsd-compat/bsd-arc4random.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/openssh/openbsd-compat/bsd-arc4random.c b/crypto/openssh/openbsd-compat/bsd-arc4random.c index dd08130d586e..5f890968eb2f 100644 --- a/crypto/openssh/openbsd-compat/bsd-arc4random.c +++ b/crypto/openssh/openbsd-compat/bsd-arc4random.c @@ -25,7 +25,7 @@ #include "includes.h" #include "log.h" -RCSID("$Id: bsd-arc4random.c,v 1.6 2003/03/17 05:13:53 djm Exp $"); +RCSID("$Id: bsd-arc4random.c,v 1.7 2003/05/18 14:13:38 djm Exp $"); #ifndef HAVE_ARC4RANDOM @@ -70,6 +70,7 @@ void arc4random_stir(void) fatal("Couldn't obtain random bytes (error %ld)", ERR_get_error()); RC4_set_key(&rc4, sizeof(rand_buf), rand_buf); + RC4(&rc4, sizeof(rand_buf), rand_buf, rand_buf); memset(rand_buf, 0, sizeof(rand_buf)); rc4_ready = REKEY_BYTES; |
