no-rand.c 355 B

1234567891011121314151617181920212223
  1. /*
  2. * Stub implementations of RNG functions for applications without an RNG.
  3. */
  4. #include "putty.h"
  5. void random_read(void *out, size_t size)
  6. {
  7. unreachable("Random numbers are not available in this application");
  8. }
  9. void random_save_seed(void)
  10. {
  11. }
  12. void random_destroy_seed(void)
  13. {
  14. }
  15. void noise_ultralight(NoiseSourceId id, unsigned long data)
  16. {
  17. }