mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-08 08:58:00 +00:00
06531c3b61
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.
23 lines
355 B
C
23 lines
355 B
C
/*
|
|
* Stub implementations of RNG functions for applications without an RNG.
|
|
*/
|
|
|
|
#include "putty.h"
|
|
|
|
void random_read(void *out, size_t size)
|
|
{
|
|
unreachable("Random numbers are not available in this application");
|
|
}
|
|
|
|
void random_save_seed(void)
|
|
{
|
|
}
|
|
|
|
void random_destroy_seed(void)
|
|
{
|
|
}
|
|
|
|
void noise_ultralight(NoiseSourceId id, unsigned long data)
|
|
{
|
|
}
|