[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] ortp: processing incoming stream

From: Simon Morlat
Subject: Re: [Linphone-developers] ortp: processing incoming stream
Date: Mon, 30 Nov 2009 14:54:47 +0100

> Now I see the problem: You call init_random_number_generator() in 
> ortp_init() and then
> session->snd.ssrc=uint32_t_random();
> in rtp_session_init().
> The problem is that I call ortp_init() and rtp_session_init() from 
> different threads. And since srand() influences only current thread 
> rand() is called without initializing randomizer. I'm not sure whether 
> this is a bug or a feature ;-) What do you think?

Thanks for pointing this problem. I think it is windows specific, since
on linux I never saw with programs running hundred of calls
There is probably a windows-specific api to have random numbers with


reply via email to

[Prev in Thread] Current Thread [Next in Thread]