git://project.juiblex.co.uk
/
razor2.git/.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0e434f5
)
Replace call to random() with the more portable rand() since we
author
J. Ali Harlow
<ali@juiblex.co.uk>
Thu, 8 Jan 2009 17:36:50 +0000 (17:36 +0000)
committer
J. Ali Harlow
<ali@juiblex.co.uk>
Thu, 8 Jan 2009 17:36:50 +0000 (17:36 +0000)
don't have any need for a "good" random number generator.
librazor/util.c
patch
|
blob
|
history
diff --git
a/librazor/util.c
b/librazor/util.c
index
401f990
..
9618f50
100644
(file)
--- 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);