summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-03-15 03:39:38 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2013-03-15 03:39:38 -0400
commitb31dd66880382354402b589317ee15473936655d (patch)
tree68c9933482ba01f8659e0fe66a16a6d779a7ad4b /Python/random.c
parentaff3084a94f77c7c8670a2787d2548bedc7193d2 (diff)
parentc78d501f52d4893f287f4b7b2f00cc96de78d7e3 (diff)
downloadcpython-b31dd66880382354402b589317ee15473936655d.tar.gz
Merge with 3.2: issue #17047 news entry
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.
*/