[docs] [issue29025] random.seed() relation to hash() function and its determinism is vague

Jakub Mateusz Kowalski report at bugs.python.org
Wed Dec 21 06:48:02 EST 2016


Jakub Mateusz Kowalski added the comment:

Python 2.7
I think note to the docs is enough.

Python 3.5+
I have a doubt. Isn't .seed(a, version=1) still coupled with PYTHONHASHSEED? The manual says version 1 is "reproducing random sequences from older versions of Python", and for 3.1 (and earlier) hash() is used, which (according to the manual) depends on PYTHONHASHSEED. Also, in Python 3.2-3.4 it is stated explicitly, that hash() is used.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29025>
_______________________________________


More information about the docs mailing list