3 ms·
I'm slightly bothered that the numbers don't have the same number of digits. The rows are not perfectly aligned!
by ufo 3y ago
I'm slightly bothered that the numbers don't have the same number of digits. The rows are not perfectly aligned!
- notpushkin 3y agoI'm also wondering why the bits are alternated in the numbers. Why can't we just set AUTH_SUCCESS to 0xffffffff and all the denied / error states to mostly-zeros?
- junon 3y agoBecause you don't want to have the wrong error code even if it's a failure code. Thus you have to figure out how to otherwise handle an enum whereby you can be reasonably assured of its value even with a flipped bit, hence the hamming distance.