From: Raymond Hettinger Date: Wed, 31 Aug 2016 21:57:32 +0000 (-0700) Subject: Issue #27706: Document that random.seed() is non-deterministic when PYTHONHASHSEED... X-Git-Tag: v2.7.13rc1~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56c51523709f88a502929dc9f34ee519aae0837b;p=thirdparty%2FPython%2Fcpython.git Issue #27706: Document that random.seed() is non-deterministic when PYTHONHASHSEED is enabled --- diff --git a/Doc/library/random.rst b/Doc/library/random.rst index 1316d2d56906..c569fa1c3a10 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -80,6 +80,9 @@ Bookkeeping functions: 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.