mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 23:16:28 -05:00
Adds a random hash seed.
This commit is contained in:
parent
548e90c30f
commit
4455ba7e4f
14 changed files with 120 additions and 29 deletions
2
sync.c
2
sync.c
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue