From c6ec64a050fa465cd2ab8fa5a6d6e9cc5108908a Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 8 Feb 2018 11:56:08 +0200 Subject: [PATCH] lib: randgen - Init seed to 0 Satisfies static analyzer, the seed is guaranteed to get filled with random data. --- src/lib/randgen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/randgen.c b/src/lib/randgen.c index ffb9c79b21..6a8d30bc36 100644 --- a/src/lib/randgen.c +++ b/src/lib/randgen.c @@ -140,7 +140,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) -- 2.47.3