[Python-checkins] cpython (2.7): Issue #27706: Document that random.seed() is non-deterministic when
raymond.hettinger
python-checkins at python.org
Wed Aug 31 17:57:40 EDT 2016
https://hg.python.org/cpython/rev/1f37903e6040
changeset: 102976:1f37903e6040
branch: 2.7
parent: 102961:f478f9b88319
user: Raymond Hettinger <python at rcn.com>
date: Wed Aug 31 14:57:32 2016 -0700
summary:
Issue #27706: Document that random.seed() is non-deterministic when PYTHONHASHSEED is enabled
files:
Doc/library/random.rst | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -80,6 +80,9 @@
they are used instead of the system time (see the :func:`os.urandom` function
for details on availability).
+ If a :term:`hashable` object is given, deterministic results are only assured
+ when :envvar:`PYTHONHASHSEED` is disabled.
+
.. versionchanged:: 2.4
formerly, operating system resources were not used.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list