Don't allocate a random SSRC with a value of zero.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1893 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-04-10 18:29:58 +00:00
parent 587b1edc89
commit dadedbb43e
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ unsigned int RTPBaseIO::ssrcInit()
{
if (m_ssrcInit) {
m_ssrcInit = false;
m_ssrc = ::random();
do {
m_ssrc = ::random();
} while (0 == m_ssrc);
}
return m_ssrc;
}