[Python-Dev] Hashing proposal: change only string-only dicts (original) (raw)

Victor Stinner victor.stinner at haypocalc.com
Tue Jan 17 23:23:48 CET 2012


There is a simpler solution:

bucketindex = (hash(str) ^ secret) & DICTMASK.

Oops, hash^secret doesn't add any security.

Victor



More information about the Python-Dev mailing list