[issue17708] sys.flags.hash_randomization doesn't return correct value
Irit Katriel
report at bugs.python.org
Sat Nov 27 10:33:08 EST 2021
Irit Katriel <iritkatriel at gmail.com> added the comment:
This is working now (note that since 3.10 hash randomisation is enabled by default):
cpython % export PYTHONHASHSEED=random
cpython % ./python.exe -c "import sys; print(sys.flags.hash_randomization)"
1
cpython % export PYTHONHASHSEED=0
cpython % ./python.exe -c "import sys; print(sys.flags.hash_randomization)"
0
cpython % export PYTHONHASHSEED=1
cpython % ./python.exe -c "import sys; print(sys.flags.hash_randomization)"
1
----------
nosy: +iritkatriel
resolution: -> out of date
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue17708>
_______________________________________
More information about the Python-bugs-list
mailing list