fixed bug with the random generator

This commit is contained in:
2026-03-27 15:16:31 +01:00
parent b7a4d6619c
commit 4910520db3

2
main.c
View File

@@ -4,6 +4,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h>
#include "helper.c" #include "helper.c"
@@ -120,6 +121,7 @@ int main() {
uint64_t p = 0; uint64_t p = 0;
uint64_t q = 0; uint64_t q = 0;
srand(time(NULL));
uint64_t base = 2; uint64_t base = 2;
pthread_t thread_p, thread_q; pthread_t thread_p, thread_q;