diff options
author | Gregory P. Smith <greg@krypto.org> | 2012-11-10 21:08:35 -0800 |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2012-11-10 21:08:35 -0800 |
commit | f6128db16b5187864ee8da2078d87bd52539fcad (patch) | |
tree | af42c874e1018ca9364a6db7e71519534d50d142 /Python/random.c | |
parent | a4eb9cd2ed70bb68d5ec8adb15a3d2b9b7ed7800 (diff) | |
parent | e289369efdb4e18f4a82ada19773bda9bd5b1781 (diff) | |
download | cpython-f6128db16b5187864ee8da2078d87bd52539fcad.tar.gz |
null merge
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. */ |