STINNER Victor <[email protected]> added the comment:

"Since speed is a concern, I think that the proposal to avoid using the random 
hash for short strings is a good idea."

My proposition only adds two XOR to hash(str) (outside the loop on Unicode 
characters), so I expect a ridiculous overhead. I don't know yet how hard it is 
to guess the secret from hash(str) output.

----------

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13703>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to