summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-11-29 02:26:15 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2012-11-29 02:26:15 +0200
commit8f539b591e32b51b7c9b39da3745698feb271b22 (patch)
treee3df2cd474923eda78b8fa864b941850d58ab3c5 /Python/random.c
parent21b88b83f813a30f697b2e8de188da7ee329baf1 (diff)
parent2d1300dfc934efc5242a6cf3753e2724f3bbc946 (diff)
downloadcpython-8f539b591e32b51b7c9b39da3745698feb271b22.tar.gz
#16476: merge with 3.2.
Diffstat (limited to 'Python/random.c')
-rw-r--r--Python/random.c11
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.
*/