[New-bugs-announce] [issue14815] random_seed uses only 32-bits of hash on Win64
Martin v. Löwis
report at bugs.python.org
Tue May 15 14:23:03 CEST 2012
New submission from Martin v. Löwis <martin at v.loewis.de>:
random_seed has this code:
long hash = PyObject_Hash(arg);
On Win64, Py_hash_t is a 64-bit type, yet long is a 32-bit type, so this truncates. I think the computation should be done in Py_ssize_t.
----------
messages: 160720
nosy: loewis
priority: normal
severity: normal
status: open
title: random_seed uses only 32-bits of hash on Win64
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14815>
_______________________________________
More information about the New-bugs-announce
mailing list