From: J. Ali Harlow Date: Thu, 8 Jan 2009 17:36:50 +0000 (+0000) Subject: Replace call to random() with the more portable rand() since we X-Git-Tag: 0.1~41 X-Git-Url: http://project.juiblex.co.uk/git/?a=commitdiff_plain;h=15340f9ec75b39f42a4ee2910b6d986fbeee8cfd;p=razor2.git%2F.git Replace call to random() with the more portable rand() since we don't have any need for a "good" random number generator. --- diff --git a/librazor/util.c b/librazor/util.c index 401f990..9618f50 100644 --- a/librazor/util.c +++ b/librazor/util.c @@ -194,7 +194,7 @@ __qsort_with_data(void *base, size_t nelem, uint32_t *map, mp = map; mstart = map; mend = map + nelem; - pivot = base + (random() % nelem) * size; + pivot = base + (rand() % nelem) * size; while (p < end) { result = ctx->compare(p, pivot, ctx->data);