From: Adam Dickmeiss Date: Fri, 9 Apr 2010 09:31:16 +0000 (+0200) Subject: Use srand rather than less portable srandom X-Git-Tag: v4.0.3~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=4e627aa761e0b91b240f703173eeb82462ee8409;p=yaz-moved-to-github.git Use srand rather than less portable srandom --- diff --git a/ztest/ztest.c b/ztest/ztest.c index 400e14e..bbbb402 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -287,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"))