Subject: Re: Time spent in ares_init_options

Re: Time spent in ares_init_options

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 23 Jul 2015 23:59:53 +0200 (CEST)

On Mon, 20 Jul 2015, Paul Oliver wrote:

>> https://github.com/bagder/c-ares/blob/bba4dc573f5c31b0145d09aa2c245e94896cf1df/ares_init.c#L1908
>> .
>>
>> What's RANDOM_FILE in your case? That function does look a bit fishy and
>> possible to improve.
>>
> /dev/urandom (on OSX)

Any suggestion on how to fix that function to run much faster? I don't think
it needs to be that complicated as it currently is, we just need decent random
there...

-- 
  / daniel.haxx.se
Received on 2015-07-24