]> granicus.if.org Git - python/commit
bpo-36559: random module: optimize sha512 import (GH-12742)
authorChristian Heimes <christian@python.org>
Wed, 10 Apr 2019 20:18:02 +0000 (22:18 +0200)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Wed, 10 Apr 2019 20:18:02 +0000 (13:18 -0700)
commitd914596a671c4b0f13641359cf43aa0d6fc05070
tree7f31160b10be89841a962387d84b23e39a5f0881
parent6955d44b41058e3bcc59ff41860bd4cc8948c441
bpo-36559: random module: optimize sha512 import (GH-12742)

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>
Lib/random.py
Misc/NEWS.d/next/Library/2019-04-09-12-02-35.bpo-36559.LbDRrw.rst [new file with mode: 0644]