Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'stubs/no-rand.c')
-rw-r--r--stubs/no-rand.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/stubs/no-rand.c b/stubs/no-rand.c
new file mode 100644
index 00000000..2ad9f661
--- /dev/null
+++ b/stubs/no-rand.c
@@ -0,0 +1,22 @@
+/*
+ * 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)
+{
+}