~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve the noise collection for the internal random pool.
[sgt/putty]
/
unix
/
uxcons.c
diff --git
a/unix/uxcons.c
b/unix/uxcons.c
index
6b3da51
..
197466e
100644
(file)
--- a/
unix/uxcons.c
+++ b/
unix/uxcons.c
@@
-25,6
+25,10
@@
void cleanup_exit(int code)
* Clean up.
*/
sk_cleanup();
+
+ if (cfg.protocol == PROT_SSH)
+ random_save_seed();
+
exit(code);
}