X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/274186e868133a9f79843edebbf01b0f0e61330a..88ea89339783ee587180b645981967f6cb8bcd20:/windows/winpgen.c diff --git a/windows/winpgen.c b/windows/winpgen.c index 48a02ec2..ffbeb1a4 100644 --- a/windows/winpgen.c +++ b/windows/winpgen.c @@ -20,7 +20,7 @@ #define WM_DONEKEY (WM_APP + 1) -#define DEFAULT_KEYSIZE 1024 +#define DEFAULT_KEYSIZE 2048 static char *cmdline_keyfile = NULL; @@ -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;