diff options
author | Patrick Monnerat <Patrick.Monnerat@datasphere.ch> | 2009-06-15 10:15:28 +0000 |
---|---|---|
committer | Patrick Monnerat <Patrick.Monnerat@datasphere.ch> | 2009-06-15 10:15:28 +0000 |
commit | c32cf33a16d31eeff9a66a1e73ce58b6791dd54d (patch) | |
tree | 2bc84bda3677164e0cc0c9736e2854eb7cf81e56 /lib/easy.c | |
parent | 7eb59de7df14c48c8a38b9628a662baa0f61847f (diff) | |
download | curl-c32cf33a16d31eeff9a66a1e73ce58b6791dd54d.tar.gz |
Replaced use of standard C library rand()/srand() by our own pseudo-random number generator.
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c index 70aa5a097..10b1bd3ee 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -85,6 +85,7 @@ #include "http_ntlm.h" #include "connect.h" /* for Curl_getconnectinfo */ #include "slist.h" +#include "formdata.h" /* For Curl_srand(). */ #define _MPRINTF_REPLACE /* use our functions only */ #include <curl/mprintf.h> @@ -289,6 +290,10 @@ CURLcode curl_global_init(long flags) init_flags = flags; + /* Preset pseudo-random number sequence. */ + + Curl_srand(); + return CURLE_OK; } |