diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-10-25 11:59:43 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-10-25 18:48:05 +0200 |
commit | 5d543fe90670c1924fd2c7d6be871b3ad90c438d (patch) | |
tree | d3d4f945d97ff52ab51c30b278f3d16e74e96883 /lib/rand.c | |
parent | 1d72b5b8916e37191108b67ddfada2d1e1e00635 (diff) | |
download | curl-5d543fe90670c1924fd2c7d6be871b3ad90c438d.tar.gz |
time: rename Curl_tvnow to Curl_now
... since the 'tv' stood for timeval and this function does not return a
timeval struct anymore.
Also, cleaned up the Curl_timediff*() functions to avoid typecasts and
clean up the descriptive comments.
Closes #2011
Diffstat (limited to 'lib/rand.c')
-rw-r--r-- | lib/rand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rand.c b/lib/rand.c index 2b08caf8c..2670af9d9 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 curltime now = Curl_tvnow(); + struct curltime now = Curl_now(); infof(data, "WARNING: Using weak random seed\n"); randseed += (unsigned int)now.tv_usec + (unsigned int)now.tv_sec; randseed = randseed * 1103515245 + 12345; |