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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27742>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to