Replaced use of standard C library rand()/srand() by our own pseudo-random number generator.

This commit is contained in:
Patrick Monnerat
2009-06-15 10:15:28 +00:00
parent 7eb59de7df
commit c32cf33a16
4 changed files with 42 additions and 5 deletions

View File

@@ -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;
}