aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sslgen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c
index ba995cb5d..a633b0c5d 100644
--- a/lib/sslgen.c
+++ b/lib/sslgen.c
@@ -209,9 +209,10 @@ unsigned int Curl_rand(struct SessionHandle *data)
{
struct timeval now = curlx_tvnow();
randseed += (unsigned int) now.tv_usec + (unsigned int)now.tv_sec;
- Curl_rand(data);
- Curl_rand(data);
- Curl_rand(data);
+ randseed = randseed * 1103515245 + 12345;
+ randseed = randseed * 1103515245 + 12345;
+ randseed = randseed * 1103515245 + 12345;
+ seeded = TRUE;
}
}
/* Return an unsigned 32-bit pseudo-random number. */