Sujet : Re: Good hash for pointers
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 02. Jun 2024, 08:45:06
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240602104506.000072e4@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
On Thu, 30 May 2024 19:27:48 -0700
Tim Rentsch <
tr.17687@z991.linuxsc.com> wrote:
Bonita Montero <Bonita.Montero@gmail.com> writes:
Am 26.05.2024 um 19:20 schrieb Tim Rentsch:
I say the output quality is poor because I have run tests that
show the poor output quality.
>
If you chose a prime whose double is beyond 64 bit there's an
equal distribution among the 64 bit modulos.
I've done that with a prime of my own choosing and also with
18446744073709551557, the value you suggested.
>
Show me your code.
Oh get real. It's not my job to make up for your
laziness.
So, what were your conclusions?
Ignoring the speed of computation, would something like cryptographic
hash scaled to bucket size be a best hash for this type of application?
Or some sort of less thorough grinding of the bits is better?