From f8640490308f29de951b7b59f07be8b744f6e895 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 10 Mar 2018 10:03:39 +0100 Subject: Only set random seed once Fixes non-random behaviour when randomizing file lists several times per second. Closes #349 --- src/imlib.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/imlib.c') diff --git a/src/imlib.c b/src/imlib.c index d9c5cd0..baaa64a 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -133,9 +133,6 @@ void init_x_and_imlib(void) imlib_set_cache_size(opt.cache_size * 1024 * 1024); - /* Initialise random numbers */ - srand(getpid() * time(NULL) % ((unsigned int) -1)); - return; } -- cgit v1.2.3