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

Centralise 'no random numbers' stubs into norand.c.

This is a small cleanup that removes a couple of copies of some boring
stubs, in favour of having just one copy that you can link against.

Unix Pageant can't currently use this, because it's in a precarious
state of _nearly_ having a random number generator: it links against
sshprng but not sshrand, and only uses it for the randomised keypress
acknowledgments in the GUI askpass prompt. But that means it does use
uxnoise, unlike the truly randomness-free tools.
This commit is contained in:
Simon Tatham
2020-02-07 19:17:19 +00:00
parent 231e482fd2
commit 06531c3b61
4 changed files with 25 additions and 33 deletions

View File

@ -16,18 +16,3 @@ const struct BackendVtable *const backends[] = {
&raw_backend,
NULL
};
/*
* Stub implementations of functions not used in non-ssh versions.
*/
void random_save_seed(void)
{
}
void random_destroy_seed(void)
{
}
void noise_ultralight(NoiseSourceId id, unsigned long data)
{
}