Subject: Re: [boost] [interprocess] boost::hash - different values for the same input?
From: Peter Dimov (lists_at_[hidden])
Date: 2016-01-14 14:22:35
Bjorn Reese wrote:
> The protocols I am using do not use fingerprinting for error correction
> but rather for identifying data chunks. See for instance:
> You will notice that equation (1) on page 207 looks an awful lot like the
> default boost::hash implementation.
If you look at the Boost.Hash documentation in
you'll see that it points to issue 6.18 of
which (at page 67) says that the proposed hash_combine is taken from that
very paper. :-)
We just added a constant offset during the review because otherwise 0 was a
My original idea was for hash_combine to be completely specified and
therefore the behavior of boost::hash to be completely predictable from the
values of the input.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk