This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Arfrever, Mark.Shannon, PaulMcMillan, Zhiping.Deng, alex, barry, benjamin.peterson, christian.heimes, dmalcolm, eric.araujo, georg.brandl, gvanrossum, jcea, lemburg, pitrou, terry.reedy, vstinner
Date 2012-01-05.00:36:10
SpamBayes Score 0.0007374153
Marked as misclassified No
Message-id <1325723771.39.0.672443575759.issue13703@psf.upfronthosting.co.za>
In-reply-to
Content
"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.
History
Date User Action Args
2012-01-05 00:36:11vstinnersetrecipients: + vstinner, lemburg, gvanrossum, barry, georg.brandl, terry.reedy, jcea, pitrou, christian.heimes, benjamin.peterson, eric.araujo, Arfrever, alex, dmalcolm, Mark.Shannon, Zhiping.Deng, PaulMcMillan
2012-01-05 00:36:11vstinnersetmessageid: <1325723771.39.0.672443575759.issue13703@psf.upfronthosting.co.za>
2012-01-05 00:36:10vstinnerlinkissue13703 messages
2012-01-05 00:36:10vstinnercreate