diff options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/crypt/arc4random.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c index b3d65abe68..45f60de9cf 100644 --- a/src/lib/libc/crypt/arc4random.c +++ b/src/lib/libc/crypt/arc4random.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: arc4random.c,v 1.4 1999/06/29 23:54:05 provos Exp $ */ | 1 | /* $OpenBSD: arc4random.c,v 1.5 1999/09/28 01:24:48 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Arc4 random number generator for OpenBSD. | 4 | * Arc4 random number generator for OpenBSD. |
| @@ -77,6 +77,7 @@ arc4_addrandom(as, dat, datlen) | |||
| 77 | as->s[as->i] = as->s[as->j]; | 77 | as->s[as->i] = as->s[as->j]; |
| 78 | as->s[as->j] = si; | 78 | as->s[as->j] = si; |
| 79 | } | 79 | } |
| 80 | as->j = as->i; | ||
| 80 | } | 81 | } |
| 81 | 82 | ||
| 82 | static void | 83 | static void |
