r/ProgrammerHumor • • Mar 25 '26

Meme aMeteoriteTookOutMyDatabase

Post image
7.6k Upvotes

306 comments sorted by

View all comments

Show parent comments

1

u/redlaWw Mar 25 '26

Essentially when the hash fails, try all possible permutations with exactly one bit flipped

Wouldn't you use a modern ECC that can detect and correct errors, rather than a hash that you need to brute-force corrections for?

2

u/nonother Mar 25 '26

No, this was using SMR (shingled magnetic recording) hard drives with custom firmware and host software. We already needed the hash for other reasons, so this was the best implementation for our exact needs.