From: <jpg...@us...> - 2007-10-03 17:17:07
|
Revision: 1166 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1166&view=rev Author: jpgrayson Date: 2007-10-03 10:17:10 -0700 (Wed, 03 Oct 2007) Log Message: ----------- Use more portable rand() instead of random(). We do not really need the extra randomness of random() anyway. Modified Paths: -------------- trunk/lib/video.c Modified: trunk/lib/video.c =================================================================== --- trunk/lib/video.c 2007-10-03 17:15:52 UTC (rev 1165) +++ trunk/lib/video.c 2007-10-03 17:17:10 UTC (rev 1166) @@ -15,6 +15,7 @@ */ #include <assert.h> +#include <stdlib.h> #include "video.h" #include "slice.h" @@ -893,8 +894,9 @@ { int i; - if ( sc == NULL ) - sc = create_slicer_context(random(), iaxc_video_fragsize); + if ( !sc ) + sc = create_slicer_context((unsigned short)rand(), + iaxc_video_fragsize); slice(data, size, &slice_set, sc); for ( i = 0 ; i < slice_set.num_slices ; i++ ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |