diff options
| author | R David Murray <rdmurray@bitdance.com> | 2013-03-20 22:12:14 -0400 |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2013-03-20 22:12:14 -0400 |
| commit | 4f9e787189db3d142c18d45c2757f07c0ea8413e (patch) | |
| tree | a283eb5ef2027fbd090f079001dd03090782ce40 /Python/random.c | |
| parent | 7ddb402f873b3a7242d4f129060073971f4ef536 (diff) | |
| parent | 5a798963eadb3caa3261326f6bb6925d127ffb5b (diff) | |
| download | cpython-4f9e787189db3d142c18d45c2757f07c0ea8413e.tar.gz | |
Merge: #5712: Preemptively fix some other possible timing issues.
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. */ |
