[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A question about hasing in idutils
From: |
Andreas Schwab |
Subject: |
Re: A question about hasing in idutils |
Date: |
Tue, 26 Mar 2024 09:58:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Mär 25 2024, Dmitry Goncharov wrote:
> The hash table from id utils from imported to gnu make.
> This hash table hashes the same string to different brackets on little
> and big endian.
> Can you please shed some light why there needs to be this difference
> in hashing on little and big endian?
It should be easy to fix: swap the bytes in sum_get_unaligned_32.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."