On Wed, Jun 10, 2009 at 12:06 AM, Daniel Stenberg<[email protected]> wrote: > 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?
That would be better than the current situation, but if the app also calls srand() itself then curl's call to srand might interfere with it. I suppose the workaround would be to call srand() after curl_global_init(). -- Michael Wood <[email protected]>
