It suddenly strikes me as probably a good idea to enforce that anyone
[u/mdw/putty] / sshrand.c
index 4c33f4a..85dfa0b 100644 (file)
--- a/sshrand.c
+++ b/sshrand.c
@@ -234,6 +234,8 @@ void random_unref(void)
 
 int random_byte(void)
 {
+    assert(random_active);
+
     if (pool.poolpos >= POOLSIZE)
        random_stir();