projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7ae9aaa
)
Use srand rather than less portable srandom
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 9 Apr 2010 09:31:16 +0000
(11:31 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 9 Apr 2010 09:31:16 +0000
(11:31 +0200)
ztest/ztest.c
patch
|
blob
|
history
diff --git
a/ztest/ztest.c
b/ztest/ztest.c
index
400e14e
..
bbbb402
100644
(file)
--- 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"))