[issue29458] random.seed version=1 behavior
Raymond Hettinger
report at bugs.python.org
Mon Feb 6 02:46:52 EST 2017
Raymond Hettinger added the comment:
Sorry Marciej, this isn't a bug. The seeders are consistent. It is the code for randint() that has changed (to fix a minor imbalance in the distribution).
$ python2.7 -c "from random import *; seed(1); print(repr(random()))"
0.13436424411240122
$ python3.5 -c "from random import *; seed(1); print(repr(random()))"
0.13436424411240122
The reproducibility guarantee is limited to the seeder and the output of random(). The downstream algorithms are allowed to change. See
https://docs.python.org/3/library/random.html#notes-on-reproducibility
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29458>
_______________________________________
More information about the Python-bugs-list
mailing list