]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4128
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Apr 2012 14:52:57 +0000 (09:52 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Apr 2012 14:52:57 +0000 (09:52 -0500)
src/mod/formats/mod_local_stream/mod_local_stream.c

index 18d490947e323e09d39975e136129da2139752f7..1e795ed5871db22374e4338020a03a26da617474 100644 (file)
@@ -94,14 +94,10 @@ struct local_stream_source {
 
 typedef struct local_stream_source local_stream_source_t;
 
-static unsigned int S = 0;
-
 static int do_rand(void)
 {
        double r;
        int index;
-       unsigned int seed = ++S + getpid();
-       srand(seed);
        r = ((double) rand() / ((double) (RAND_MAX) + (double) (1)));
        index = (int) (r * 9) + 1;
        return index;