diff --git a/test/testunmap.c b/test/testunmap.c index 2ad5e3ae..5d38ef36 100644 --- a/test/testunmap.c +++ b/test/testunmap.c @@ -2,12 +2,13 @@ #include "../src/link.h" #include #include +#include #include #include #ifdef WIN32 -#include + #include #else -#include + #include #endif #include #include @@ -168,7 +169,7 @@ void loop(int count) && count-- > 0 && ( (links = mpr_graph_get_list(srcgraph, MPR_LINK)) || (links = mpr_graph_get_list(dstgraph, MPR_LINK)))) { - int inst = random() % num_inst; + int inst = rand() % num_inst; mpr_list_free(links); eprintf("Updating signal %s.%d to %d\n", sig_name, inst, sent); mpr_sig_set_value(sendsig, inst, 1, MPR_INT32, &sent);