diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2012-12-17 20:46:29 +0100 |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2012-12-17 20:46:29 +0100 |
commit | 256a72f8e9db70a130289a61f3c42724b53a5c8c (patch) | |
tree | 07cc937c010871cf2ab2e7254fa929febac8a20f /Python/random.c | |
parent | 2f0e84852b01098904a180a66569a40ba93425d6 (diff) | |
parent | 9d1c74a5371d09c4867cae87e762954fd4053092 (diff) | |
download | cpython-256a72f8e9db70a130289a61f3c42724b53a5c8c.tar.gz |
Issue 16646 (ftplib): deliberately use intermediate variable after catching exception
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 11 |
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. */ |