Re:ECC matters
by mark-r on Sunday January 03, 2021 @01:18PM
(#25623651)
That's the principle behind Gray Code counting: https://en.wikipedia.org/wiki/Gray_code
[ Parent
| on HN ]
Re:ECC matters
by Dylan16807 on Monday January 04, 2021 @11:09PM
(#25641984)
Not really. Gray codes are designed so that if you're counting correctly, only one bit flips at a time. But if you flip the wrong bit by accident, you'll end up with a completely different number, no way to tell a problem happened.
If you want to detect a bit flip, use parity.