diff options
author | Gregory P. Smith <greg@krypto.org> | 2012-11-10 20:33:39 -0800 |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2012-11-10 20:33:39 -0800 |
commit | d98fd0ba8bd29a84c4fe934943ae220e61a4d21e (patch) | |
tree | 40003865df125fc68fbc297b157bb2ed2ea92096 /Python/random.c | |
parent | df239cc4ed6147657aa092b78f30ff82775276fb (diff) | |
parent | 1705501613e48d1a0c235c5eb49e31db31029e31 (diff) | |
download | cpython-d98fd0ba8bd29a84c4fe934943ae220e61a4d21e.tar.gz |
Fixes issue #9535: Fix pending signals that have been received but not
yet handled by Python to not persist after os.fork() in the child process.
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. */ |