[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
- Previous message: [Python-Dev] Hashing proposal: change only string-only dicts
- Next message: [Python-Dev] Hashing proposal: change only string-only dicts
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
There is a simpler solution:
bucketindex = (hash(str) ^ secret) & DICTMASK.
Oops, hash^secret doesn't add any security.
Victor
- Previous message: [Python-Dev] Hashing proposal: change only string-only dicts
- Next message: [Python-Dev] Hashing proposal: change only string-only dicts
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]