aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cipher/ChangeLog5
-rw-r--r--cipher/random.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index 826645c0b..b5732524d 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-07 David Shaw <[email protected]>
+
+ * random.c: Fix prototype of the fast random gatherer. Noted by
+ Joe Vender.
+
2005-03-23 Werner Koch <[email protected]>
* rndw32.c (rndw32_gather_random_fast): While adding data use the
diff --git a/cipher/random.c b/cipher/random.c
index 0aa75cda4..4dd8d54c7 100644
--- a/cipher/random.c
+++ b/cipher/random.c
@@ -183,7 +183,7 @@ getfnc_gather_random (void))(void (*)(const void*, size_t, int), int,
return NULL;
}
-static void (*
+static int (*
getfnc_fast_random_poll (void))( void (*)(const void*, size_t, int), int)
{
#ifdef USE_RNDW32
@@ -620,7 +620,7 @@ random_poll()
void
fast_random_poll()
{
- static void (*fnc)( void (*)(const void*, size_t, int), int) = NULL;
+ static int (*fnc)( void (*)(const void*, size_t, int), int) = NULL;
static int initialized = 0;
rndstats.fastpolls++;