Skip to content

Commit 3a004aa

Browse files
Commit
1 parent 046a4e3 commit 3a004aa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Doc/using/cmdline.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ Miscellaneous options
369369
.. option:: -R
370370

371371
Turn on hash randomization. This option only has an effect if the
372-
:envvar:`PYTHONHASHSEED` environment variable is set to ``0``, since hash
372+
:envvar:`PYTHONHASHSEED` environment variable is set, since hash
373373
randomization is enabled by default.
374374

375375
On previous versions of Python, this option turns on hash randomization,

Python/initconfig.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ Options (and corresponding environment variables):\n\
273273
-P : don't prepend a potentially unsafe path to sys.path; also\n\
274274
PYTHONSAFEPATH\n\
275275
-q : don't print version and copyright messages on interactive startup\n\
276+
-R : enable hash randomization;
277+
this option overrides PYTHONHASHSEED to use the default behavior\n\
276278
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE=x\n\
277279
-S : don't imply 'import site' on initialization\n\
278280
-u : force the stdout and stderr streams to be unbuffered;\n\

0 commit comments

Comments
 (0)