cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Calls to srand() in Curl_FormBoundary()

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 10 Jun 2009 00:06:23 +0200 (CEST)

On Tue, 9 Jun 2009, Tetetest wrote:

> I suggest to remove the call to srand() altogether, and give the application
> developer a chance to seed the random number generator.

But removing it all together, now, could make it totally unseeded for current
apps. Wouldn't it be good enough to move the srand() call to the
curl_global_init() function?

-- 
  / daniel.haxx.se
Received on 2009-06-10