News for hackers. Stuff that matters.
Re:There are only four billion floats, so test them all (2014) by Scarblac on Sunday October 11, 2020 @03:35PM (#24748413)
It ensures that if someone changes the hashing algorithm, your test for the collision mitigation now doesn't test that anymore even though they should be unrelated.
Re:There are only four billion floats, so test them all (2014) by halter73 on Sunday October 11, 2020 @06:20PM (#24749601)
After going through all that effort to make the test less "fake", I expect tialaramex verified the collision still happened as part of the test.
Re:There are only four billion floats, so test them all (2014) by tialaramex on Sunday October 11, 2020 @09:11PM (#24750550)
Yes, actually we also verified that all the hashes were exactly what we expected, because we were using this for content based addressing. "The hash has unexpectedly changed" was a fatal build error.

If we wanted to change how the hash is calculated all extant instances of the system need to dump to backups, then be painstakingly restored after updating. Possible, but certainly not something you'd be doing for giggles.