1 diff -up openssh-5.9p0/entropy.c.randclean openssh-5.9p0/entropy.c
2 --- openssh-5.9p0/entropy.c.randclean 2011-08-30 13:52:45.000000000 +0200
3 +++ openssh-5.9p0/entropy.c 2011-08-30 13:57:44.630111338 +0200
4 @@ -217,6 +217,9 @@ seed_rng(void)
5 fatal("OpenSSL version mismatch. Built against %lx, you "
6 "have %lx", (u_long)OPENSSL_VERSION_NUMBER, SSLeay());
8 + /* clean the PRNG status when exiting the program */
9 + atexit(RAND_cleanup);
11 #ifndef OPENSSL_PRNG_ONLY
12 if (RAND_status() == 1) {
13 debug3("RNG is ready, skipping seeding");