Message287094
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 |
|
Date |
User |
Action |
Args |
2017-02-06 07:46:52 | rhettinger | set | recipients:
+ rhettinger, mark.dickinson, vstinner, Maciej Obarski |
2017-02-06 07:46:52 | rhettinger | set | messageid: <1486367212.2.0.333798341999.issue29458@psf.upfronthosting.co.za> |
2017-02-06 07:46:52 | rhettinger | link | issue29458 messages |
2017-02-06 07:46:51 | rhettinger | create | |
|