[docs] [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
nosy: Jakub.Mateusz.Kowalski, docs at python
title: Results of random.seed() call with integer argument should be claimed deterministic.
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the docs