learnig: add ending and fix leak memory

This commit is contained in:
2025-05-12 15:16:19 +02:00
parent d2a84f4a82
commit 52e6353469
8 changed files with 229 additions and 28 deletions
+4 -1
View File
@@ -24,9 +24,12 @@ int xrand(){
static bool init = true;
if(init){
init = false;
struct timespec start_t;
srand(time(NULL));
/*
struct timespec start_t;
clock_gettime(CLOCK_REALTIME, &start_t);
srand(start_t.tv_nsec);
*/
//srand(start_t.tv_nsec - start_t.tv_sec);
}
int ret = rand ();