[New-bugs-announce] [issue29023] Results of random.seed() call with integer argument should be claimed deterministic.

Jakub Mateusz Kowalski report at bugs.python.org
Tue Dec 20 07:46:14 EST 2016


New submission from Jakub Mateusz Kowalski:

In https://docs.python.org/2/library/random.html#random.seed I can find that "If a hashable object is given, deterministic results are only assured when PYTHONHASHSEED is disabled."

Both int and long are hashable. However, tests on the random module as well as C source code of random_seed (as indicated in http://stackoverflow.com/a/41228062/4879688) suggest that behaviour of the module is deterministic when seeded with an integer.

----------
assignee: docs at python
components: Documentation
messages: 283686
nosy: Jakub.Mateusz.Kowalski, docs at python
priority: normal
severity: normal
status: open
title: Results of random.seed() call with integer argument should be claimed deterministic.
versions: Python 2.7

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


More information about the New-bugs-announce mailing list