Fix complaint from valgrind about uninitialized memory usage.

This commit is contained in:
Jon Siwek 2012-07-25 12:42:46 -05:00
parent 2fafadd930
commit 4abcfa1f66

View file

@ -691,6 +691,7 @@ void init_random_seed(uint32 seed, const char* read_file, const char* write_file
{
static const int bufsiz = 16;
uint32 buf[bufsiz];
memset(buf, 0, sizeof(buf));
int pos = 0; // accumulates entropy
bool seeds_done = false;