New submission from Martin v. Löwis <mar...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue14815> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com