summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-01 13:31:12 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-01 13:31:12 +0200
commitc83af6a2bda3609c435b6ce84f990256c593f3d4 (patch)
tree189c44827c3dba1a46ad12187f3dea03c549798f /Python/random.c
parent7afede10a583e241aea0452c8bc9fe7522509873 (diff)
parent9e9e8c4bbb70e717829906215e42e2c398f28679 (diff)
downloadcpython-c83af6a2bda3609c435b6ce84f990256c593f3d4.tar.gz
Merge issue #16373: Prevent infinite recursion for ABC Set class operations.
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.
*/