@@ -89,7 +89,6 @@ static int rs_initialized;
89
89
static struct arc4_stream rs ;
90
90
static pid_t arc4_stir_pid ;
91
91
static int arc4_count ;
92
- static int arc4_seeded_ok ;
93
92
94
93
static inline unsigned char arc4_getbyte (void );
95
94
@@ -163,7 +162,6 @@ arc4_seed_win32(void)
163
162
return -1 ;
164
163
arc4_addrandom (buf , sizeof (buf ));
165
164
evutil_memclear_ (buf , sizeof (buf ));
166
- arc4_seeded_ok = 1 ;
167
165
return 0 ;
168
166
}
169
167
#endif
@@ -201,7 +199,6 @@ arc4_seed_sysctl_linux(void)
201
199
202
200
arc4_addrandom (buf , sizeof (buf ));
203
201
evutil_memclear_ (buf , sizeof (buf ));
204
- arc4_seeded_ok = 1 ;
205
202
return 0 ;
206
203
}
207
204
#endif
@@ -241,7 +238,6 @@ arc4_seed_sysctl_bsd(void)
241
238
242
239
arc4_addrandom (buf , sizeof (buf ));
243
240
evutil_memclear_ (buf , sizeof (buf ));
244
- arc4_seeded_ok = 1 ;
245
241
return 0 ;
246
242
}
247
243
#endif
@@ -287,7 +283,6 @@ arc4_seed_proc_sys_kernel_random_uuid(void)
287
283
}
288
284
evutil_memclear_ (entropy , sizeof (entropy ));
289
285
evutil_memclear_ (buf , sizeof (buf ));
290
- arc4_seeded_ok = 1 ;
291
286
return 0 ;
292
287
}
293
288
#endif
@@ -311,7 +306,6 @@ static int arc4_seed_urandom_helper_(const char *fname)
311
306
return -1 ;
312
307
arc4_addrandom (buf , sizeof (buf ));
313
308
evutil_memclear_ (buf , sizeof (buf ));
314
- arc4_seeded_ok = 1 ;
315
309
return 0 ;
316
310
}
317
311
@@ -382,9 +376,6 @@ arc4_stir(void)
382
376
if (0 != arc4_seed ())
383
377
return -1 ;
384
378
385
- if (!arc4_seeded_ok )
386
- return -1 ;
387
-
388
379
/*
389
380
* Discard early keystream, as per recommendations in
390
381
* "Weaknesses in the Key Scheduling Algorithm of RC4" by
0 commit comments