2 ms·
No, non-deterministic bugs are in fact the worst kind of bugs. Absolutely maddening. Except maybe these: http://en.wikipedia.org/wiki/Unusual_software_bug http:
by tlrobinson 18y ago
No, non-deterministic bugs are in fact the worst kind of bugs. Absolutely maddening. Except maybe these: http://en.wikipedia.org/wiki/Unusual_software_bug http://en.wikipedia.org/wiki/Unusual_software_bug
Anyway, if this or the equivalent were hidden somewhere in your code, and it wasn't supposed to be, would you not consider it a bug just because it only happened 1 in 10,000 runs or so?
if (rand() % 10000 == 0)
exit(0);