X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sshrand.c;h=4c33f4a01877e488738ebe5297b8beb0302df3d4;hb=3e22c99c9a3c28e042f2dc3a50fadf95e7c277e7;hp=b728fd95f9268c78c3bd61313bd52279cbdfd61e;hpb=5ea11dfb3afbd8f11afd2ff1d93e077852032535;p=PuTTY.git 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);