<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 02/16/2016 09:22 PM, Stephen J.
Turnbull wrote:<br>
</div>
<blockquote
cite="mid:22211.55646.297661.231923@turnbull.sk.tsukuba.ac.jp"
type="cite">
<pre wrap="">Glenn Linderman writes:
> I think hashes of all types have been randomized, not _just_ the list
> you mentioned.
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.
</pre>
</blockquote>
<br>
Both these statements are wrong. int objects have their own hash
algorithm, built in to long_hash() in Objects/longobject.c. The
hash of an int is the value of the int, unless it's -1 or doesn't
fit into the native type. And ints don't participate in hash
randomization.<br>
<br>
<br>
<i>/arry</i><br>
</body>
</html>