From: Sven M. Hallberg Date: Mon, 1 Sep 2014 22:45:28 +0000 (+0200) Subject: use rand() because random() isn't available on windows X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=3aa9202069840cc091e6dc9202c2163b85a5d21b;p=catta use rand() because random() isn't available on windows --- diff --git a/tests/prioq-test.c b/tests/prioq-test.c index b01068c..d9f9f19 100644 --- a/tests/prioq-test.c +++ b/tests/prioq-test.c @@ -90,7 +90,7 @@ int main(CATTA_GCC_UNUSED int argc, CATTA_GCC_UNUSED char *argv[]) { srand(time(NULL)); for (i = 0; i < 10000; i++) - catta_prio_queue_put(q2, catta_prio_queue_put(q, INT_TO_POINTER(random() & 0xFFFF))); + catta_prio_queue_put(q2, catta_prio_queue_put(q, INT_TO_POINTER(rand() & 0xFFFF))); while (q2->root) { rec(q->root);