X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinpgen.c;h=ffbeb1a4ee0784cea95e4050b90c4428ce63adcf;hb=f071feb9a646ecb51e3d6db543119b88cafda832;hp=c83d0d20cd5ce04dd96fa6a15c1325999196d775;hpb=948203f2c7cd5f0ebe6f995aea79ce65ed93e4ee;p=PuTTY.git 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;