mirror of
https://github.com/curl/curl.git
synced 2026-08-24 16:23:34 +03:00
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
This commit is contained in:
parent
1d72b5b891
commit
5d543fe906
23 changed files with 73 additions and 83 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue