X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Frand%2Frand.h;h=f14a115225772c613059709775f9002d7bc09a52;hp=35a3bb6e10101d40f6b5dfaeaa1861686507dcc5;hb=c9e1fe33be9d9c60f832c22442cff45bf5a667a5;hpb=eb952088f0d5da59e569ae2aa33e9b96bc3b586d diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h index 35a3bb6e10..f14a115225 100644 --- a/crypto/rand/rand.h +++ b/crypto/rand/rand.h @@ -68,20 +68,28 @@ typedef struct rand_meth_st void (*seed)(const void *buf, int num); int (*bytes)(unsigned char *buf, int num); void (*cleanup)(void); - void (*add)(const void *buf, int num, int entropy); + void (*add)(const void *buf, int num, double entropy); + int (*pseudorand)(unsigned char *buf, int num); } RAND_METHOD; +#ifdef BN_DEBUG +extern int rand_predictable; +#endif + void RAND_set_rand_method(RAND_METHOD *meth); RAND_METHOD *RAND_get_rand_method(void ); RAND_METHOD *RAND_SSLeay(void); void RAND_cleanup(void ); int RAND_bytes(unsigned char *buf,int num); +int RAND_pseudo_bytes(unsigned char *buf,int num); void RAND_seed(const void *buf,int num); -void RAND_add(const void *buf,int num,int entropy); +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); -char *RAND_file_name(char *file,int num); -#ifdef WINDOWS +const char *RAND_file_name(char *file,int num); +int RAND_status(void); +int RAND_egd(const char *path); +#if defined(WINDOWS) || defined(WIN32) void RAND_screen(void); #endif void ERR_load_RAND_strings(void);