Xxhash: Question. Using seed as additional data. In other words, does using different seeds affect the quality.

Created on 25 May 2020  路  2Comments  路  Source: Cyan4973/xxHash

I need to hash 64 bytes of contiguous memory and 3 bytes that are spread somewhere else. I was thinking about providing the 64 bytes as data, and the 3 bytes as a seed. Would this harm the quality of the hash? Is there a different way of doing this while not sacrificing performance?

question

Most helpful comment

I believe that's fine.
Faced with a similar scenario, I would consider the same construction.

All 2 comments

Using different seeds does not make a huge difference on quality aside from seed=0.

However, using the input as a seed is really unusual, as usually the seed is constant.

I believe that's fine.
Faced with a similar scenario, I would consider the same construction.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

carstenskyboxlabs picture carstenskyboxlabs  路  6Comments

yassinm picture yassinm  路  5Comments

devnoname120 picture devnoname120  路  8Comments

vp1981 picture vp1981  路  7Comments

gitmko0 picture gitmko0  路  4Comments