]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshrand.c
It suddenly strikes me as probably a good idea to enforce that anyone
[PuTTY.git] / sshrand.c
index 4c33f4a01877e488738ebe5297b8beb0302df3d4..85dfa0b6bfbdfe40812d408154759d37044ae0c0 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();