X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/b72bdf1132e50a6bb5d1d11d4ed239a34866e5e1..e99bb8bfc8d2c1a47b6ae90ef43683d191c30f66:/sshrand.c diff --git a/sshrand.c b/sshrand.c index b728fd95..4c33f4a0 100644 --- a/sshrand.c +++ b/sshrand.c @@ -199,9 +199,9 @@ static void random_add_heavynoise_bitbybit(void *noise, int length) pool.poolpos = i; } -static void random_timer(void *ctx, long now) +static void random_timer(void *ctx, unsigned long now) { - if (random_active > 0 && now - next_noise_collection >= 0) { + if (random_active > 0 && now == next_noise_collection) { noise_regular(); next_noise_collection = schedule_timer(NOISE_REGULAR_INTERVAL, random_timer, &pool);