cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Calls to srand() in Curl_FormBoundary()

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Thu, 11 Jun 2009 20:09:53 +0200

 
Daniel Stenberg wrote:
> Wouldn't it be good enough to move the srand() call to the
curl_global_init() function?

We could also have our own random number generator, with our own random
seed, in order to not interfere with the standard one.
In fact, some randomization is desirable for a form boundary, but the
effective number suite is not so important.

Patrick
Received on 2009-06-11