Avoid race condition.
[oweals/openssl.git] / crypto / rand / rand.h
index 6b276d05e2e493bcb6d9f1c9aa300e8293a23444..918f865d90fadd1cdd8bb24a77367e7c29515d91 100644 (file)
@@ -59,7 +59,7 @@
 #ifndef HEADER_RAND_H
 #define HEADER_RAND_H
 
-#include <openssl/e_os2.h>
+#include <stdlib.h>
 
 #ifdef  __cplusplus
 extern "C" {
@@ -79,9 +79,7 @@ typedef struct rand_meth_st
 extern int rand_predictable;
 #endif
 
-struct engine_st;
-
-int RAND_set_rand_method(struct engine_st *meth);
+void RAND_set_rand_method(RAND_METHOD *meth);
 RAND_METHOD *RAND_get_rand_method(void );
 RAND_METHOD *RAND_SSLeay(void);
 void RAND_cleanup(void );
@@ -91,9 +89,8 @@ void RAND_seed(const void *buf,int num);
 void RAND_add(const void *buf,int num,double entropy);
 int  RAND_load_file(const char *file,long max_bytes);
 int  RAND_write_file(const char *file);
-const char *RAND_file_name(char *file,int num);
+const char *RAND_file_name(char *file,size_t num);
 int RAND_status(void);
-int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
 int RAND_egd(const char *path);
 int RAND_egd_bytes(const char *path,int bytes);
 void ERR_load_RAND_strings(void);
@@ -103,7 +100,7 @@ int RAND_poll(void);
 }
 #endif
 
-#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32)
+#if defined(WINDOWS) || defined(WIN32)
 #include <windows.h>
 
 #ifdef  __cplusplus