summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-11-01 20:15:23 +0100
committerAntoine Pitrou <solipsis@pitrou.net>2012-11-01 20:15:23 +0100
commitbb42f1ed9aeb4d9708fa57501bd208c8b5db2229 (patch)
tree3a8b6bf5dc17986078b94c5b7b9ab05cb2851076 /Python/random.c
parent397dfac64f36bf0f9abf8f7969abf46925dda753 (diff)
parent99884cde16e365202fd4c9c591b90a5ae8008b36 (diff)
downloadcpython-bb42f1ed9aeb4d9708fa57501bd208c8b5db2229.tar.gz
Issue #16230: Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
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.
*/