New submission from Maciej Obarski:

random.seed version=1 wont generate the same randint sequences in python2 and 
python3

Python 2.7:
>>> seed(1); randint(0,100)
13

Python 3.6:
>>> seed(1,version=1); randint(0,100)
17

The documentation states that versio=1 is "provided for reproducing random 
sequences from older versions of Python" and "If a new seeding method is added, 
then a backward compatible seeder will be offered."

----------
components: Extension Modules
messages: 287089
nosy: Maciej Obarski
priority: normal
severity: normal
status: open
title: random.seed version=1 behavior
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29458>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to