From 3aa9202069840cc091e6dc9202c2163b85a5d21b Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Tue, 2 Sep 2014 00:45:28 +0200 Subject: [PATCH] use rand() because random() isn't available on windows --- tests/prioq-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5