This commit is contained in:
Anthony Minessale 2012-04-19 09:52:57 -05:00
parent 7427fb9686
commit 773a4c1f84
1 changed files with 0 additions and 4 deletions

View 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;