diff options
Diffstat (limited to 'src/lib/libc')
-rw-r--r-- | src/lib/libc/crypt/arc4random.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c index 5b376488ec..5c768f5494 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.10 2003/11/26 21:40:08 djm Exp $ */ | 1 | /* $OpenBSD: arc4random.c,v 1.11 2004/11/02 11:07:13 hshoexer Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Arc4 random number generator for OpenBSD. | 4 | * Arc4 random number generator for OpenBSD. |
@@ -99,14 +99,14 @@ arc4_stir(struct arc4_stream *as) | |||
99 | } | 99 | } |
100 | 100 | ||
101 | arc4_stir_pid = getpid(); | 101 | arc4_stir_pid = getpid(); |
102 | arc4_addrandom(as, (void *) &rdat, sizeof(rdat)); | 102 | arc4_addrandom(as, (void *)&rdat, sizeof(rdat)); |
103 | 103 | ||
104 | /* | 104 | /* |
105 | * Discard early keystream, as per recommendations in: | 105 | * Discard early keystream, as per recommendations in: |
106 | * http://www.wisdom.weizmann.ac.il/~itsik/RC4/Papers/Rc4_ksa.ps | 106 | * http://www.wisdom.weizmann.ac.il/~itsik/RC4/Papers/Rc4_ksa.ps |
107 | */ | 107 | */ |
108 | for (i = 0; i < 256; i++) | 108 | for (i = 0; i < 256; i++) |
109 | (void) arc4_getbyte(as); | 109 | (void)arc4_getbyte(as); |
110 | } | 110 | } |
111 | 111 | ||
112 | static inline u_int8_t | 112 | static inline u_int8_t |