improvements to sort_random

This commit is contained in:
nova
2026-04-04 21:58:43 +02:00
parent acb7db1617
commit 6372dbba69
3 changed files with 16 additions and 16 deletions

5
main.c
View File

@@ -23,7 +23,7 @@ unsigned int file_modifiers;
unsigned int status = (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_MASK | STATUS_RELOAD_DIRECTORY);
char *start_path;
char *global_path;
time_t *seed;
time_t seed;
WINDOW *win_t;
WINDOW *win_b;
@@ -205,7 +205,6 @@ void init() {
setenv("START_PATH", start_path, 0);
free(start_path);
seed = malloc(sizeof(time_t));
*seed = time(NULL);
seed = time(NULL);
}