On Mon, Mar 17, 2014 at 1:37 PM, Ben Pfaff <b...@nicira.com> wrote:
> On Fri, Mar 14, 2014 at 08:18:44AM -0700, Gurucharan Shetty wrote:
>> Windows does not have a srandom() and random(). But it does
>> have a srand() and rand(). We use these functions in sflow code.
>>
>> Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>
>
> How do these functions get called?  As far as I can tell, they only
> get used if SFLOW_SOFTWARE_SAMPLING is defined, and I don't see where
> that gets defined.

sfl_poller_set_sFlowCpInterval() in lib/sflow_poller.c calls random().
I agree that srandom() is not called anywhere in particular (it is
inside the SFLOW_SOFTWARE_SAMPLING). I thought, when I was #defining
one thing, I do the other as well. Do you prefer to just do a
#define random rand
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to