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 Ramchandra Apte
Recipients Ramchandra Apte
Date 2012-01-04.04:58:49
SpamBayes Score 2.4513347e-05
Marked as misclassified No
Message-id <1325653130.87.0.569297022599.issue13710@psf.upfronthosting.co.za>
In-reply-to
Content
If you run hash on strings containing only null characters it returns the length of the string
>>> hash("\0")
1
>>> hash("\0\0")
2
>>> hash("\0"*1000)
1000
This behaviour is not like proper hash functions.
The hashes of these strings should exhibit the avalanche effect like in a proper hash function.
History
Date User Action Args
2012-01-04 04:58:50Ramchandra Aptesetrecipients: + Ramchandra Apte
2012-01-04 04:58:50Ramchandra Aptesetmessageid: <1325653130.87.0.569297022599.issue13710@psf.upfronthosting.co.za>
2012-01-04 04:58:50Ramchandra Aptelinkissue13710 messages
2012-01-04 04:58:49Ramchandra Aptecreate