From 4910520db38002d798012e0f06d06a26a1fafc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= Date: Fri, 27 Mar 2026 15:16:31 +0100 Subject: [PATCH] fixed bug with the random generator --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 0533db1..effc228 100644 --- a/main.c +++ b/main.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "helper.c" @@ -120,6 +121,7 @@ int main() { uint64_t p = 0; uint64_t q = 0; + srand(time(NULL)); uint64_t base = 2; pthread_t thread_p, thread_q;