1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Loose end from timing shakeup: sshrand.c is now a client of

timing.c, and hence takes its own responsibility for calling
noise_regular() at regular intervals. Again, this means it will be
called consistently in _all_ the SSH-speaking tools, not just those
in which I remembered to call it!

[originally from svn r4913]
This commit is contained in:
Simon Tatham
2004-11-27 19:56:38 +00:00
parent 9fc67313fb
commit 8c69ba0672
7 changed files with 38 additions and 15 deletions

View File

@ -616,7 +616,7 @@ int main(int argc, char **argv)
else
strftime(default_comment, 30, "rsa-key-%Y%m%d", tm);
random_init();
random_ref();
entropy = get_random_data(bits / 8);
random_add_heavynoise(entropy, bits / 8);
memset(entropy, 0, bits/8);