Deutsch English Français Italiano |
<v3ihvr$3fvqo$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c Subject: Re: Good hash for pointers Date: Sun, 2 Jun 2024 12:42:51 -0700 Organization: A noiseless patient Spider Lines: 31 Message-ID: <v3ihvr$3fvqo$1@dont-email.me> References: <v2n88p$1nlcc$1@dont-email.me> <v2qm8m$2el55$1@raubtier-asyl.eternal-september.org> <v2qnue$2evlu$1@dont-email.me> <v2r9br$2hva2$1@dont-email.me> <86fru6gsqr.fsf@linuxsc.com> <v2sudq$2trh1$1@raubtier-asyl.eternal-september.org> <8634q5hjsp.fsf@linuxsc.com> <v2vmhr$3ffjk$1@raubtier-asyl.eternal-september.org> <86le3wfsmd.fsf@linuxsc.com> <v2voe7$3fr50$1@raubtier-asyl.eternal-september.org> <86ed9ofq14.fsf@linuxsc.com> <v2vs40$3gflh$1@raubtier-asyl.eternal-september.org> <86sexypvff.fsf@linuxsc.com> <20240602104506.000072e4@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 02 Jun 2024 21:42:52 +0200 (CEST) Injection-Info: dont-email.me; posting-host="0bb49fc26fc6f8ecae9a7bf35a560037"; logging-data="3669848"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kHUbVgVLsCgMCsFZPCQ4yPGHC5eTtXNU=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:q8xerPpz9c0Cyyd2pKMlJ1kKS1Q= Content-Language: en-US In-Reply-To: <20240602104506.000072e4@yahoo.com> Bytes: 3098 On 6/2/2024 12:45 AM, Michael S wrote: > 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? > Use this one... lol! I laugh because its not exactly fast... ;^) http://fractallife247.com/test/hmac_cipher/ver_0_0_0_1?ct_hmac_cipher=eb1e27ed692b3cc98275fd002178baa0cbfc2e520a749d70ba7b4028b83982f4b42fd9d33a0f03e69b37fdbf3b63853b33c822afdf32f9810bdc542690e1bab726db1b9b9787d50432f521aa424296a83c319f2a299492ff72a9b61ae641f164cdbb864e2f1c047c6767a83c7678a0e30d63c935bb7c3326ffb3203179ee08e406851cb8e572c5005d81900ee87281e0743f3e41e64323776330408d76d6eb0cd569144a81cbbfa9b0a3cb94bfea4e25bfd94ec008b30573a2046178b02b9c855ec98a6eaa507d14fece8064