summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-03-20 21:55:14 -0400
committerR David Murray <rdmurray@bitdance.com>2013-03-20 21:55:14 -0400
commit5a798963eadb3caa3261326f6bb6925d127ffb5b (patch)
tree9b637b3780a7bc298d041b4ff9f54e41b22774a0 /Python/random.c
parentcf761fd932e233dc2504c0f9d031f37ca74cd24f (diff)
parent47f6db5883ca9667de17cdaeba3c0798ec8ddba2 (diff)
downloadcpython-5a798963eadb3caa3261326f6bb6925d127ffb5b.tar.gz
Merge: #5713: fix timing issue in smtplib tests.
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.
*/