Re: Gitorious should use CRC128 / 256 / 512 instead of SHA-1
- From
Hans Petter Selasky <hps@selasky.org>
- Date
- Jan 13, 2023, 16:45 UTC
- Message-ID
- <af36e6cd-f649-5ef5-ecdb-19555833b5d4@selasky.org>
- In-Reply-To
- <20230113164131.swif4buln2py7tyl@meerkat.local>
On 1/13/23 17:41, Konstantin Ryabitsev wrote:
> It doesn't matter how it works behind the scenes as long as the produced hash > is not unique (and CRC gives you no assurance of being unique). Git is built > on the concept that every object has a unique hash. If this is no longer true, > then it's literally no longer git, but is something else.
That's why I say you need a fixup field, in case of collisions. CRC is used plenty all over the place and has good entropy.
--HPS