Adds a random hash seed.

This commit is contained in:
Andrea Mazzoleni 2013-06-16 00:33:46 +02:00
parent 548e90c30f
commit 4455ba7e4f
14 changed files with 120 additions and 29 deletions

2
sync.c
View file

@ -244,7 +244,7 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
countsize += read_size;
/* now compute the hash */
memhash(state->hash, hash, buffer[j], read_size);
memhash(state->hash, state->hashseed, hash, buffer[j], read_size);
if (block_has_hash(block)) {
/* compare the hash */