mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
Fix a type error in our (unused) arc4random_stir()
This commit is contained in:
parent
f663112fa2
commit
f736198086
@ -352,7 +352,7 @@ arc4_seed(void)
|
||||
return ok ? 0 : -1;
|
||||
}
|
||||
|
||||
static void
|
||||
static int
|
||||
arc4_stir(void)
|
||||
{
|
||||
int i;
|
||||
@ -363,6 +363,8 @@ arc4_stir(void)
|
||||
}
|
||||
|
||||
arc4_seed();
|
||||
if (!arc4_seeded_ok)
|
||||
return -1;
|
||||
|
||||
/*
|
||||
* Discard early keystream, as per recommendations in
|
||||
@ -385,6 +387,8 @@ arc4_stir(void)
|
||||
for (i = 0; i < 12*256; i++)
|
||||
(void)arc4_getbyte();
|
||||
arc4_count = BYTES_BEFORE_RESEED;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user