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

View file

@ -50,6 +50,7 @@ struct snapraid_state {
uint64_t qarity_device; /**< Device identifier of the qarity. */
char pool[PATH_MAX]; /**< Path of the pool tree. */
uint64_t pool_device; /**< Device identifier of the pool. */
unsigned char hashseed[HASH_SIZE]; /**< Hash seed. */
unsigned level; /**< Number of parity levels. 1 for RAID5, 2 for RAID6. */
unsigned hash; /**< Hash kind used. */
unsigned besthash; /**< Best hash suggested. */