From 4dee50b9c80f9b18d2eb9a1c20bd879abb342302 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 28 Jul 2017 15:49:36 +0200 Subject: timeval: struct curltime is a struct timeval replacement ... to make all libcurl internals able to use the same data types for the struct members. The timeval struct differs subtly on several platforms so it makes it cumbersome to use everywhere. Ref: #1652 Closes #1693 --- lib/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rand.c') diff --git a/lib/rand.c b/lib/rand.c index b6f40ac0a..2713a0aa3 100644 --- a/lib/rand.c +++ b/lib/rand.c @@ -86,7 +86,7 @@ static CURLcode randit(struct Curl_easy *data, unsigned int *rnd) #endif if(!seeded) { - struct timeval now = curlx_tvnow(); + struct curltime now = curlx_tvnow(); infof(data, "WARNING: Using weak random seed\n"); randseed += (unsigned int)now.tv_usec + (unsigned int)now.tv_sec; randseed = randseed * 1103515245 + 12345; -- cgit v1.2.1