Message150662
It's quite possible that a user has created a function (by mistake or deliberately) that gives away the hash of an arbitrary string. We haven't taught developers that (s)he shouldn't disclose the hash of a string.
> Why should hash("") always return 0?
> I can't find it in the docs anywhere.
hash("") should return something constant that doesn't reveal information about the random seeds. 0 is an arbitrary choice that is as good as anything else. hash("") already returns 0, hence my suggestion for 0. |
|
| Date |
User |
Action |
Args |
| 2012-01-05 10:20:27 | christian.heimes | set | recipients:
+ christian.heimes, lemburg, gvanrossum, barry, georg.brandl, terry.reedy, jcea, pitrou, vstinner, benjamin.peterson, eric.araujo, Arfrever, alex, dmalcolm, Mark.Shannon, Zhiping.Deng, Huzaifa.Sidhpurwala, PaulMcMillan |
| 2012-01-05 10:20:27 | christian.heimes | set | messageid: <[email protected]> |
| 2012-01-05 10:20:26 | christian.heimes | link | issue13703 messages |
| 2012-01-05 10:20:26 | christian.heimes | create | |
|