Jan F 003cb0
diff -up openssh-5.8p1/entropy.c.randclean openssh-5.8p1/entropy.c
Jan F 003cb0
--- openssh-5.8p1/entropy.c.randclean	2011-01-13 11:05:29.000000000 +0100
Jan F 003cb0
+++ openssh-5.8p1/entropy.c	2011-02-14 00:26:31.000000000 +0100
e39eb5
@@ -159,6 +159,9 @@ init_rng(void)
e39eb5
 		fatal("OpenSSL version mismatch. Built against %lx, you "
Jan F 003cb0
 		    "have %lx", (u_long)OPENSSL_VERSION_NUMBER, SSLeay());
28355b
 
28355b
+	/* clean the PRNG status when exiting the program */
28355b
+	atexit(RAND_cleanup);
28355b
+
e39eb5
 #ifndef OPENSSL_PRNG_ONLY
e39eb5
 	original_uid = getuid();
e39eb5
 	original_euid = geteuid();