summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-11-11 10:00:49 -0800
committerGregory P. Smith <greg@krypto.org>2012-11-11 10:00:49 -0800
commitf4a5dfe24c34dd6e05d35602fc5348950df8dee3 (patch)
tree4ef940a1491657477b0408a0f745af375d151744 /Python/random.c
parentaae8080e3515cec0107f374c325ed197855a4bb8 (diff)
parenta62ddd3b7d21b987341dc6dcad1dd0a812fdc562 (diff)
downloadcpython-f4a5dfe24c34dd6e05d35602fc5348950df8dee3.tar.gz
Refactor test_preexec_errpipe to not create an uncollectable reference cycle.
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.
*/