Use srand rather than less portable srandom
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 9 Apr 2010 09:31:16 +0000 (11:31 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 9 Apr 2010 09:31:16 +0000 (11:31 +0200)
ztest/ztest.c

index 400e14e..bbbb402 100644 (file)
@@ -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"))