[Python-Dev] Hash randomization for which types?

Stephen J. Turnbull stephen at xemacs.org
Wed Feb 17 08:34:33 EST 2016


Christoph Groth writes:
 > Stephen J. Turnbull wrote:

 > > Yes.  There's only one hash function used, which operates on byte
 > > streams IIRC.  That function now has a random offset.  The details of
 > > hashing each type are in the serializations to byte streams.
 > 
 > Could you please elaborate?  Numbers are not hashed as byte streams,

Just a stupid mistake on my part.  Should have reviewed the code
first.  I'll shut up now, take my fly meds, get some sleep, drink
coffee in the morning, and then take an axe to my keyboard. :-(

Steve


More information about the Python-Dev mailing list