diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-03-10 10:03:39 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-03-10 10:03:39 +0100 |
commit | f8640490308f29de951b7b59f07be8b744f6e895 (patch) | |
tree | b4c2af1c051f698b7c3ce50c2dfc96547c3e76b3 /src/imlib.c | |
parent | e522c4ea04e9d899907deb5d0304f7de0823e9da (diff) |
Only set random seed once
Fixes non-random behaviour when randomizing file lists several times per
second.
Closes #349
Diffstat (limited to 'src/imlib.c')
-rw-r--r-- | src/imlib.c | 3 |
1 files changed, 0 insertions, 3 deletions
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; } |