Skip to content

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