cpython (2.7): Issue #27706: Document that random.seed() is non-deterministic when

https://hg.python.org/cpython/rev/1f37903e6040 changeset: 102976:1f37903e6040 branch: 2.7 parent: 102961:f478f9b88319 user: Raymond Hettinger <python@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
participants (1)
-
raymond.hettinger