Replace call to random() with the more portable rand() since we
authorJ. Ali Harlow <ali@juiblex.co.uk>
Thu Jan 08 17:36:50 2009 +0000 (2009-01-08)
changeset 337c89695ed29f0
parent 336 2d4107c6683d
child 338 47f3e27cb978
Replace call to random() with the more portable rand() since we
don't have any need for a "good" random number generator.
librazor/util.c
     1.1 --- a/librazor/util.c	Thu Jan 08 17:29:31 2009 +0000
     1.2 +++ b/librazor/util.c	Thu Jan 08 17:36:50 2009 +0000
     1.3 @@ -194,7 +194,7 @@
     1.4  	mp = map;
     1.5  	mstart = map;
     1.6  	mend = map + nelem;
     1.7 -	pivot = base + (random() % nelem) * size;
     1.8 +	pivot = base + (rand() % nelem) * size;
     1.9  
    1.10  	while (p < end) {
    1.11  		result = ctx->compare(p, pivot, ctx->data);