X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fztest.c;h=bbbb402c871f817a0e8cd83f5eae7c1625782abc;hp=4ebf1c1e6a10819d48cd0df7556723ca043682b8;hb=bdd905698804f35851e060a58290f722dd5cffa0;hpb=6efe941c2ccde0e5a7895ab63d4b876fd6396bfc diff --git a/ztest/ztest.c b/ztest/ztest.c index 4ebf1c1..bbbb402 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -21,6 +21,9 @@ #if HAVE_SYS_SELECT_H #include #endif +#ifdef WIN32 +#include +#endif #include #include @@ -284,7 +287,7 @@ int ztest_search(void *handle, bend_search_rr *rr) const char *name = names[i]; const char *value = values[i]; if (!strcmp(name, "seed")) - srandom(atoi(value)); + srand(atoi(value)); else if (!strcmp(name, "search-delay")) parse_delay(&new_set->search_delay, value); else if (!strcmp(name, "present-delay"))