mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Move random_save_seed() into sshrand.c.
It's identical in uxnoise and winnoise, being written entirely in terms of existing cross-platform functions. Might as well centralise it into sshrand.c.
This commit is contained in:
@ -75,18 +75,6 @@ void noise_get_heavy(void (*func) (void *, int))
|
||||
read_random_seed(func);
|
||||
}
|
||||
|
||||
void random_save_seed(void)
|
||||
{
|
||||
int len;
|
||||
void *data;
|
||||
|
||||
if (random_active) {
|
||||
random_get_savedata(&data, &len);
|
||||
write_random_seed(data, len);
|
||||
sfree(data);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* This function is called on a timer, and it will monitor
|
||||
* frequently changing quantities such as the state of physical and
|
||||
|
Reference in New Issue
Block a user