1
Fork 0

Merge commit '2e797796a545748ea815f39113088c701b45653'

main
Davi Reis 2014-06-06 11:49:39 -03:00
commit a57fe72c9a
1 changed files with 4 additions and 1 deletions

View File

@ -89,7 +89,10 @@ jenkins_state_t *jenkins_state_new(cmph_uint32 size) //size of hash table
jenkins_state_t *state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
if (!state) return NULL;
DEBUGP("Initializing jenkins hash\n");
state->seed = ((cmph_uint32)rand() % size);
if(size > 0)
state->seed = ((cmph_uint32)rand() % size);
else
state->seed = 0;
return state;
}
void jenkins_state_destroy(jenkins_state_t *state)