# HG changeset patch # User J. Ali Harlow # Date 1231436210 0 # Node ID c89695ed29f042b0b3162d112efeacdad075f41f # Parent 2d4107c6683d28441f7430cdae05a125d861ab8f Replace call to random() with the more portable rand() since we don't have any need for a "good" random number generator. diff -r 2d4107c6683d -r c89695ed29f0 librazor/util.c --- a/librazor/util.c Thu Jan 08 17:29:31 2009 +0000 +++ b/librazor/util.c Thu Jan 08 17:36:50 2009 +0000 @@ -194,7 +194,7 @@ 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);