summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2012-10-31 19:45:05 +0000
committerMark Dickinson <mdickinson@enthought.com>2012-10-31 19:45:05 +0000
commitb68dcb7718ee0b66d9943d5f8f5cfff9dd63291c (patch)
tree6613b92662f0b49c0c175110f7ad7141f0d735fa /Python/random.c
parent6f2c7167b3d56676b76d6b37bdc92271a2aa1442 (diff)
parenta544cdd8453491733923297e43fd8e8f31f31a81 (diff)
downloadcpython-b68dcb7718ee0b66d9943d5f8f5cfff9dd63291c.tar.gz
Issue #16348: merge fix from 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.
*/