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

improvements to sort_rand

This commit is contained in:
nova
2025-09-28 10:45:33 +02:00
parent 21a11d8be1
commit d3e46846cd
3 changed files with 11 additions and 13 deletions

4
main.c
View File

@@ -102,6 +102,7 @@ int main(){
if (dt - t >= SETTINGS_RELOAD_DIR_DELTA) {
time(&t);
status |= (STATUS_RUN_BACKEND | STATUS_RELOAD_DIRECTORY);
srand(seed);
}
#endif
@@ -205,7 +206,6 @@ void init() {
char *start_path = getcwd(NULL, 0);
setenv("START_PATH", start_path, 0);
free(start_path);
time(&seed);
srand(seed);
seed = time(NULL);
}