➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: Backport #22585 -- getentropy for urandom to Python 2.7
类型: Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
状态: closed Resolution: fixed
Dependencies: 后续:
分配给: 抄送列表: alex, benjamin.peterson, dstufft, python-dev
优先级: normal 关键字: needs review, patch

Created on 2014-12-26 16:21 by alex, last changed 2022-04-11 14:58 by admin. This issue is now closed.

文件
文件名 上传时间 Description 编辑
issue23115.diff alex, 2014-12-26 16:21
Messages (5)
msg233105 - (view) Author: Alex Gaynor (alex) * (Python committer) 日期: 2014-12-26 16:21
This makes the urandom codebase easier to maintain by allowing porting patches between 2.7 and 3.x easier; it also improves support for the OpenBSD platform.

Support for porting patches is not just a theoretical concern, it's likely that Linux's getrandom() will be supported at some point; like getentropy() it's useful because it's less error prone, and works in chroots and other environments that don't explicitly set up the /dev/urandom device.
msg233108 - (view) Author: Roundup Robot (python-dev) (Python triager) 日期: 2014-12-26 17:09
New changeset 9cd2641765dc by Benjamin Peterson in branch '2.7':
use getentropy when available (backport of 75ede5bec8db) (closes #23115)
https://hg.python.org/cpython/rev/9cd2641765dc
msg236088 - (view) Author: Roundup Robot (python-dev) (Python triager) 日期: 2015-02-16 06:06
New changeset a1391786abcd by Serhiy Storchaka in branch '2.7':
Issue #23115: Fixed compilation on OpenBSD (Py_MIN is not defined in 2.7).
https://hg.python.org/cpython/rev/a1391786abcd
msg238282 - (view) Author: Roundup Robot (python-dev) (Python triager) 日期: 2015-03-17 11:36
New changeset 961efafe9497 by Ned Deily in branch '2.7':
Issue #22585, #23115: make URandomFDTests test case actually run
https://hg.python.org/cpython/rev/961efafe9497
msg239587 - (view) Author: Roundup Robot (python-dev) (Python triager) 日期: 2015-03-30 09:23
New changeset 05b96af72805 by Victor Stinner in branch '2.7':
Issue #23115: os.urandom() now releases the GIL when the getentropy() is used
https://hg.python.org/cpython/rev/05b96af72805
历史
日期 用户 动作 参数
2022-04-11 14:58:11admin修改github: 67304
2015-03-30 09:23:03python-dev修改消息: + msg239587
2015-03-17 11:36:37python-dev修改消息: + msg238282
2015-02-16 06:06:28python-dev修改消息: + msg236088
2014-12-26 17:09:12python-dev修改状态: open -> closed

抄送: + python-dev
消息: + msg233108

resolution: fixed
stage: resolved
2014-12-26 16:21:39alex修改文件: + issue23115.diff
2014-12-26 16:21:13alex创建