4 ms·
Does that prevent, or more expose?
by iab 5y ago
Does that prevent, or more expose?
- klodolph 5y agoI think the general idea is "shift left" which you can say exposes bugs earlier, or prevents bugs from reaching production, which is kind of a "six dozen of one, half dozen of the other". Bugs which are exposed early enough do not get committed. "Shift left" just means that you shift the feedback to the developer farther left in the build process, closer (in time and space) to when the mistake was made.
- EE84M3i 5y agoI don't know about go specifically, but many languages randomize their hash tables to avoid Hash Collision DoS attacks. This is a problem for any piece of software putting attacker-controlled data into a hash-table that does not randomize the hashing and where they assume that it will be amortized constant time.
- masklinn 5y agoGo does have that, but it also specifically and explicitly randomises iteration order.