diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/genrand.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/lib/genrand.c b/source4/lib/genrand.c index e3df9f9d90..9d40e72afc 100644 --- a/source4/lib/genrand.c +++ b/source4/lib/genrand.c @@ -111,8 +111,10 @@ static void get_random_stream(unsigned char *data, size_t datasize) } /**************************************************************** - Get a 16 byte hash from the contents of a file. - Note that the hash is not initialised. + Get a 16 byte hash from the contents of a file. + + Note that the hash is initialised, because the extra entropy is not + worth the valgrind pain. *****************************************************************/ static void do_filehash(const char *fname, unsigned char *the_hash) @@ -121,6 +123,8 @@ static void do_filehash(const char *fname, unsigned char *the_hash) unsigned char tmp_md4[16]; int fd, n; + ZERO_STRUCT(tmp_md4); + fd = open(fname,O_RDONLY,0); if (fd == -1) return; |