Kaydet (Commit) 56c51523 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

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

üst 28fb4da2
...@@ -80,6 +80,9 @@ Bookkeeping functions: ...@@ -80,6 +80,9 @@ Bookkeeping functions:
they are used instead of the system time (see the :func:`os.urandom` function they are used instead of the system time (see the :func:`os.urandom` function
for details on availability). for details on availability).
If a :term:`hashable` object is given, deterministic results are only assured
when :envvar:`PYTHONHASHSEED` is disabled.
.. versionchanged:: 2.4 .. versionchanged:: 2.4
formerly, operating system resources were not used. formerly, operating system resources were not used.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment