3 ms·
Perl did that too IIRC, although motivation was to avoid predictable hash collisions that might put program into slow path
by ilyt 4y ago
Perl did that too IIRC, although motivation was to avoid predictable hash collisions that might put program into slow path
- usr1106 4y agoDidn't Python introduce that, too, after a high profile DoS CVE around 10 years ago?
- jwilk 4y agoYes. https://docs.python.org/3/reference/datamodel.html#object.__hash__ https://docs.python.org/3/reference/datamodel.html#object.__... > Changed in version 3.3: Hash randomization is enabled by default. But since Python 3.6 dicts keep the insertion order, so the order of iteration is deterministic again.