Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-32329: Fix -R option for hash randomization #4873

Merged
merged 2 commits into from
Dec 14, 2017
Merged

bpo-32329: Fix -R option for hash randomization #4873

merged 2 commits into from
Dec 14, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 14, 2017

bpo-32329, bpo-32030:

  • The -R option now turns on hash randomization when the
    PYTHONHASHSEED environment variable is set to 0 Previously, the
    option was ignored.
  • sys.flags.hash_randomization is now properly set to 0 when hash
    randomization is turned off by PYTHONHASHSEED=0.
  • _PyCoreConfig_ReadEnv() now reads the PYTHONHASHSEED environment
    variable. _Py_HashRandomization_Init() now only apply the
    configuration, it doesn't read PYTHONHASHSEED anymore.

https://bugs.python.org/issue32329

bpo-32329, bpo-32030:

* The -R option now turns on hash randomization when the
  PYTHONHASHSEED environment variable is set to 0 Previously, the
  option was ignored.
* sys.flags.hash_randomization is now properly set to 0 when hash
  randomization is turned off by PYTHONHASHSEED=0.
* _PyCoreConfig_ReadEnv() now reads the PYTHONHASHSEED environment
  variable. _Py_HashRandomization_Init() now only apply the
  configuration, it doesn't read PYTHONHASHSEED anymore.
@vstinner vstinner merged commit 358e5e1 into python:master Dec 14, 2017
@vstinner vstinner deleted the hash_init branch December 14, 2017 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants