Skip to content

Commit

Permalink
lib: randgen - Init seed to 0
Browse files Browse the repository at this point in the history
Satisfies static analyzer, the seed is guaranteed to get
filled with random data.
  • Loading branch information
cmouse committed Feb 21, 2018
1 parent 32b9cd0 commit 5541f5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/randgen.c
Expand Up @@ -141,7 +141,8 @@ void random_fill(void *buf, size_t size)

void random_init(void)
{
unsigned int seed;
/* static analyzer seems to require this */
unsigned int seed = 0;
const char *env_seed;

if (init_refcount++ > 0)
Expand Down

0 comments on commit 5541f5c

Please sign in to comment.