Skip to content

Commit

Permalink
Fix a type error in our (unused) arc4random_stir()
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Feb 9, 2011
1 parent f663112 commit f736198
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arc4random.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ arc4_seed(void)
return ok ? 0 : -1;
}

static void
static int
arc4_stir(void)
{
int i;
Expand All @@ -363,6 +363,8 @@ arc4_stir(void)
}

arc4_seed();
if (!arc4_seeded_ok)
return -1;

/*
* Discard early keystream, as per recommendations in
Expand All @@ -385,6 +387,8 @@ arc4_stir(void)
for (i = 0; i < 12*256; i++)
(void)arc4_getbyte();
arc4_count = BYTES_BEFORE_RESEED;

return 0;
}


Expand Down

0 comments on commit f736198

Please sign in to comment.