1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-22 02:40:15 -04:00

improvenments to random sort

This commit is contained in:
nova
2025-08-29 22:42:46 +02:00
parent 9f3042ccac
commit 5afabfb412
3 changed files with 22 additions and 49 deletions

4
main.c
View File

@@ -4,6 +4,7 @@
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <time.h>
#include "defines.h"
#include "threading.h"
@@ -20,6 +21,7 @@ unsigned int settings;
unsigned int file_modifiers;
unsigned int status = (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_MASK | STATUS_RELOAD_DIRECTORY);
char *start_path;
time_t seed;
WINDOW *win_t;
WINDOW *win_b;
@@ -188,5 +190,7 @@ void init() {
char *start_path = getcwd(NULL, 0);
setenv("START_PATH", start_path, 0);
free(start_path);
time(&seed);
srand(seed);
}