Commit 00b069c8 authored by Pekka Pessi's avatar Pekka Pessi

su_uniqueid: call initstate() with memory from heap

Ignore-this: af9e58551676e173844d0b77af0e287a

When gets unloaded, its data segment gets unloaded, but
random() still wants to use the memory.

parent 4b597c0e
......@@ -136,7 +136,12 @@ static void init(void)
int i;
/* Allow to unload. */
uint32_t *seed = calloc(32, sizeof *seed);
static uint32_t seed[32] = { 0 };
su_time_t now;
initialized = 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment