summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-08-04 00:56:19 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2012-08-04 00:56:19 +0200
commitb0f1dbb51e0c28a801c8c3e9992453de14c5e436 (patch)
treedad2470e591823bf79bc9ea8a5a7923b928e9f4a /Python/random.c
parent8cc05cc705495cfb6bf6a35600ba9a4a4c9e2b2c (diff)
parent6a18048c636a6fcc31c56906952f1e470cb5412b (diff)
downloadcpython-b0f1dbb51e0c28a801c8c3e9992453de14c5e436.tar.gz
Make TextIOWrapper's documentation clearer by copying the newline argument's description from open().
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 a2ae002261..7019a3503e 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -257,17 +257,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.
*/