1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Implement "putty -cleanup"

[originally from svn r626]
This commit is contained in:
Simon Tatham
2000-09-25 15:47:57 +00:00
parent 0fb760b16d
commit f80f9d4299
4 changed files with 104 additions and 0 deletions

10
noise.c
View File

@ -107,6 +107,16 @@ void random_save_seed(void) {
}
}
/*
* This function is called from `putty -cleanup'. It removes the
* random seed file.
*/
void random_destroy_seed(void) {
if (!seedpath[0])
get_seedpath();
remove(seedpath);
}
/*
* This function is called every time the random pool needs
* stirring, and will acquire the system time in all available