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:
4
main.c
4
main.c
@@ -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);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user