diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-10-24 23:06:56 +0300 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-10-24 23:06:56 +0300 |
commit | 96e3c00794c56103677f83937276d9b36fafcbb6 (patch) | |
tree | 02a1ae77d5a41cab6f22b076745f37488891d97d /Python/random.c | |
parent | f374fd439129c8845636dbcd6b9db788ca30ddc5 (diff) | |
parent | 3afc106889340dadee60bd7407e11380d45c18e7 (diff) | |
download | cpython-96e3c00794c56103677f83937276d9b36fafcbb6.tar.gz |
#16210: merge with 3.2.
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Python/random.c b/Python/random.c index 825260f36b..53518c2ebe 100644 --- a/Python/random.c +++ b/Python/random.c @@ -258,17 +258,6 @@ _PyRandom_Init(void) _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. */ |