bytes/hash: upper 32-bits of Hash result are independent of seed on 32-bit CPUs #34925
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Package bytes/hash claims:
This is false on 32-bit CPUs:
This is because hash.New() only generates 32 bits of entropy (all in the lower 32-bits of seed), so the "hi" computation in hash.rthash does not involve any entropy.
Mixing lo/hi like the TODO comment says would address this, but the simpler fix would be to generate 64-bits of entropy.
The text was updated successfully, but these errors were encountered: