X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/50d7de97df48ac10b321c216f2b4e880f710f435..f7aa4b367eaf2c1e928f97263bcf4da74680aff3:/windows/winpgen.c diff --git a/windows/winpgen.c b/windows/winpgen.c index c83d0d20..ffbeb1a4 100644 --- a/windows/winpgen.c +++ b/windows/winpgen.c @@ -958,7 +958,7 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg, * Seed the entropy pool */ random_add_heavynoise(state->entropy, state->entropy_size); - memset(state->entropy, 0, state->entropy_size); + smemclr(state->entropy, state->entropy_size); sfree(state->entropy); state->collecting_entropy = FALSE;