cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Calls to srand() in Curl_FormBoundary()

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 13 Jun 2009 00:03:55 +0200 (CEST)

On Fri, 12 Jun 2009, Patrick Monnerat wrote:

> Here is a patch that provides a sufficiently good random number sequence
> without using rand()/srand(). In addition, it is seeded only once in
> curl_global_init(): this is even better than reseeding it (even with adding
> an incremental value) each time we need a new boundary.
>
> Just tell if you want I commit...

I think it looks fine!

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