Mercurial > cpython-lru_cache-weakref
diff Python/random.c @ 75152:198e31774f0f
enable hash randomization by default
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Tue, 21 Feb 2012 16:08:05 -0500 |
| parents | 160a56eac332 |
| children | 6a782496f90a a53fc9982e2a |
line wrap: on
line diff
--- a/Python/random.c Tue Feb 21 19:54:26 2012 +0100 +++ b/Python/random.c Tue Feb 21 16:08:05 2012 -0500 @@ -257,17 +257,6 @@ _Py_HashSecret_Initialized = 1; /* - By default, hash randomization is disabled, and only - enabled if PYTHONHASHSEED is set to non-empty or if - "-R" is provided at the command line: - */ - if (!Py_HashRandomizationFlag) { - /* Disable the randomized hash: */ - memset(secret, 0, secret_size); - return; - } - - /* Hash randomization is enabled. Generate a per-process secret, using PYTHONHASHSEED if provided. */
