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

Wolfgang Rohdewald report at bugs.python.org
Fri Aug 12 04:47:14 EDT 2016


New submission from Wolfgang Rohdewald:

The documentation promises backwards compatible seeders. I understand this as such that they generate the same random sequences. But for Python 2.7.12 and 3.5.2 this is not so, even if I pass an integer as seed value. The attached script returns different values.

Maybe I misunderstand the documentation - I believe it means that seed(version=1) uses the backwards compatible seeder, but it does not say so explicitly. If that is not so, the documentation does not say how to invoke the backwards compatible seeder.

----------
components: Library (Lib)
files: r.py
messages: 272506
nosy: wrohdewald
priority: normal
severity: normal
status: open
title: Random.seed(5, version=1) generates different values in PYthon2 and Python3
versions: Python 2.7, Python 3.5
Added file: http://bugs.python.org/file44082/r.py

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


More information about the Python-bugs-list mailing list