|
Does it work without OpenSSL? |
|
Travis CI failed: |
Yes, the _sha512 module is unrelated to OpenSSL. Moreover, _sha512 is available if even _hashlib (_hashopenssl.c) is missing. The _sha512 module is available even if OpenSSL is available. |
The random module now prefers the lean internal _sha512 module over hashlib for seed(version=2) to optimize import time. Signed-off-by: Christian Heimes <christian@python.org>
161956d to
8f45246
Compare
|
The _sha512 module contains a full implementation of sha512 and sha384 based on code from libtomcrypt. Python always builds these modules. Some vendors may not deliver the modules, because the code is not FIPS approved crypto. That's why I have included a fallback to hashlib. |
The random module now prefers the lean internal _sha512 module over hashlib
for seed(version=2) to optimize import time.
Signed-off-by: Christian Heimes christian@python.org
https://bugs.python.org/issue36559