X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/32874aeac8dacbca26663777b39a79efc5d8dc4b..ab2c86b9e339e4c0a7d824b1f7ec4efcce985d79:/noise.c?ds=sidebyside diff --git a/noise.c b/noise.c index 856974bc..141f111c 100644 --- a/noise.c +++ b/noise.c @@ -53,8 +53,10 @@ void random_save_seed(void) int len; void *data; - random_get_savedata(&data, &len); - write_random_seed(data, len); + if (random_active) { + random_get_savedata(&data, &len); + write_random_seed(data, len); + } } /* @@ -127,7 +129,7 @@ void noise_regular(void) * counter to the noise pool. It gets the scan code or mouse * position passed in. */ -void noise_ultralight(DWORD data) +void noise_ultralight(unsigned long data) { DWORD wintime; LARGE_INTEGER perftime;