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@python
components: Documentation
messages: 283686
nosy: Jakub.Mateusz.Kowalski, docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29023>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to