diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-15 19:46:34 -0700 |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-15 19:46:34 -0700 |
commit | 20806e28dcf66e38f0ec23b44a5d5de4dd5a0a5f (patch) | |
tree | 85033317973c341f2dbffd9dedab4b727091b943 /Python/random.c | |
parent | 74ca57b4aaad468485a7bf69e403dce8311f2242 (diff) | |
parent | 860a9bc73f3eef2a82207dbf468a474a075e8528 (diff) | |
download | cpython-20806e28dcf66e38f0ec23b44a5d5de4dd5a0a5f.tar.gz |
Issue #16225: Merge from 3.2: Add additional note to tutorial about looping.
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. */ |