[Python-Dev] Counting collisions for the win

Victor Stinner victor.stinner at haypocalc.com
Sun Jan 22 11:11:29 CET 2012

> This seed is chosen randomly at runtime, but cannot
> change once chosen.

The hash is used to compare objects: if hash(obj1) != hash(obj2),
objects are considered different. So two strings must have the same
hash if their value is the same.

> Salt could also be an appropriate term here, but since salt is
> generally changed on a per-use basis (a single process may use many
> different salts), seed is more correct, since this value is only
> chosen once per process.

We may use a different salt per dictionary.


More information about the Python-Dev mailing list