diff options
author | Bodo Möller <bodo@openssl.org> | 2000-02-19 15:22:53 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-02-19 15:22:53 +0000 |
commit | 853f757ecea74a271a7c5cdee3f3b5fe0d3ae863 (patch) | |
tree | 13a2eb9ba4e6b03334914e6e0b8cd465cadce870 /crypto/rand/rand.h | |
parent | ae1bb4e572e02ce73d54c05ce18e872c36da2d35 (diff) | |
download | openssl-853f757ecea74a271a7c5cdee3f3b5fe0d3ae863.tar.gz |
Allow for higher granularity of entropy estimates by using 'double'
instead of 'unsigned' counters.
Seed PRNG in MacOS/GetHTTPS.src/GetHTTPS.cpp.
Partially submitted by Yoram Meroz <yoram@mail.idrive.com>.
Diffstat (limited to 'crypto/rand/rand.h')
-rw-r--r-- | crypto/rand/rand.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h index b5d2166b06..e5d6696cb4 100644 --- a/crypto/rand/rand.h +++ b/crypto/rand/rand.h @@ -68,7 +68,7 @@ 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; @@ -79,7 +79,7 @@ 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); const char *RAND_file_name(char *file,int num); |