diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-23 18:52:39 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-23 18:52:39 +0200 |
commit | ca2822fba1a8b14d95a38bf83b68b46cf224c89d (patch) | |
tree | c3706f242dadad496468894646634bf15ef4f6d7 /Python/random.c | |
parent | 1802937d1c6583c845b347d86db0ce3d6f56545f (diff) | |
parent | ca0b38c67382c8bc153913e2c1378dae038955fb (diff) | |
download | cpython-ca2822fba1a8b14d95a38bf83b68b46cf224c89d.tar.gz |
#16306: merge with 3.2.
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. */ |