logoalt Hacker News

minitechyesterday at 10:22 PM1 replyview on HN

CPython has the unfortunate property that ints aren’t covered by hash randomization, and `hash(x) == x % ((1 << 61) - 1)` always.


Replies

progvaltoday at 4:28 AM

Ouch, that's a big footgun. Why was the lack of randomization considered a vulnerability, but not this?