ztest: Last test MARC record in UTF-8 ;was Latin-1
[yaz-moved-to-github.git] / ztest / ztest.c
index 4ebf1c1..bbbb402 100644 (file)
@@ -21,6 +21,9 @@
 #if HAVE_SYS_SELECT_H
 #include <sys/select.h>
 #endif
+#ifdef WIN32
+#include <windows.h>
+#endif
 
 #include <yaz/log.h>
 #include <yaz/backend.h>
@@ -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"))