• Victor Stinner's avatar
    bpo-32329: Fix -R option for hash randomization (#4873) · 358e5e17
    Victor Stinner yazdı
    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.
    358e5e17
pylifecycle.h 6.39 KB