[issue27742] Random.seed(5, version=1) generates different values in PYthon2 and Python3

Antti Haapala report at bugs.python.org
Fri Aug 12 05:55:46 EDT 2016


Antti Haapala added the comment:

but yes, now that I read the documentation, 3.5 docs it say very explicitly that:

  Two aspects are guaranteed not to change:

    - If a new seeding method is added, then a backward compatible seeder will be offered.
    - The generator’s random() method will continue to produce the same sequence when the compatible seeder is given the same seed.

thus no guarantee is given about any other method at all, including randrange and randint.

----------

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


More information about the Python-bugs-list mailing list