h = ec_murmurhash3(key, strlen(key), ec_keyval_seed);
LIST_FOREACH(ref, &keyval->table[h & mask], next) {
- if (strcmp(ref->elt->key, key) == 0) {
- errno = 0;
+ if (strcmp(ref->elt->key, key) == 0)
return ref;
- }
}
errno = ENOENT;
int fd;
ssize_t ret;
+ return 0;//XXX for test reproduceability
+
fd = open("/dev/urandom", 0);
if (fd == -1) {
fprintf(stderr, "failed to open /dev/urandom\n");