e_os.h does not belong with the exported headers. Do not put it there
[openssl.git] / crypto / rand / md_rand.c
index 837947e8a622c90307c1f12336f987c424cddcaf..d3261a028c495812f6d64f38a18cd31e5ab6f392 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
-#include "openssl/e_os.h"
+#include "e_os.h"
 
 #include <openssl/rand.h>
 #include "rand_lcl.h"
@@ -182,6 +182,7 @@ static void ssleay_rand_cleanup(void)
        md_count[0]=0;
        md_count[1]=0;
        entropy=0;
+       initialized=0;
        }
 
 static void ssleay_rand_add(const void *buf, int num, double add)
@@ -293,7 +294,7 @@ static void ssleay_rand_add(const void *buf, int num, double add)
            entropy += add;
        if (!add_do_not_lock) CRYPTO_w_unlock(CRYPTO_LOCK_RAND);
        
-#if !defined(THREADS) && !defined(WIN32)
+#if !defined(OPENSSL_THREADS) && !defined(OPENSSL_SYS_WIN32)
        assert(md_c[1] == md_count[1]);
 #endif
        }