Boost logo

Boost :

From: Darryl Green (darryl.green_at_[hidden])
Date: 2024-12-08 22:55:06


On Mon, 9 Dec 2024, 7:19 am Peter Dimov via Boost, <boost_at_[hidden]>
wrote:
> Bitwise xor has the problem that xoring two equal values yields 0, so
> the sequences [1], [1, 1, 1], [1, 2, 2] and so on all hash to the same
thing.

Exactly. Surely this means your other comment that you could add the
unit64_t[] elements individually, should hopefully fail smhash testing? Add
without carry on 64 bit chunks is better than add without carry on 1 bit
chunks but still not ideal?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk