X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=play.c;h=9fc49e377e8048cb2f6b703cdabf9d156843812d;hp=cf7c5a302d2cac9e96fd3793778733f874d3e267;hb=97ad8ac8735dfd7a514aa66e9de54f253440c17d;hpb=879e52d49df6d00aa9eafe5cccb48bbd24ed4c81 diff --git a/play.c b/play.c index cf7c5a30..9fc49e37 100644 --- a/play.c +++ b/play.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2014 Andre Noll + * Copyright (C) 2012-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -301,7 +301,7 @@ static int shuffle_compare(__a_unused const void *a, __a_unused const void *b) static void shuffle(char **base, size_t num) { - srandom(now->tv_sec); + srandom(time(NULL)); qsort(base, num, sizeof(char *), shuffle_compare); } @@ -1240,7 +1240,6 @@ int main(int argc, char *argv[]) filter_init(); writer_init(); - clock_get_realtime(now); sched.default_timeout.tv_sec = 5; parse_config_or_die(argc, argv);