Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport #22585 -- getentropy for urandom to Python 2.7 #67304

Closed
alex opened this issue Dec 26, 2014 · 5 comments
Closed

Backport #22585 -- getentropy for urandom to Python 2.7 #67304

alex opened this issue Dec 26, 2014 · 5 comments
Labels
stdlib Python modules in the Lib dir

Comments

@alex
Copy link
Member

alex commented Dec 26, 2014

BPO 23115
Nosy @benjaminp, @alex, @dstufft
Files
  • issue23115.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2014-12-26.17:09:12.273>
    created_at = <Date 2014-12-26.16:21:13.643>
    labels = ['library']
    title = 'Backport python/cpython#66775 -- getentropy for urandom to Python 2.7'
    updated_at = <Date 2015-03-30.09:23:03.680>
    user = 'https://github.com/alex'

    bugs.python.org fields:

    activity = <Date 2015-03-30.09:23:03.680>
    actor = 'python-dev'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-12-26.17:09:12.273>
    closer = 'python-dev'
    components = ['Library (Lib)']
    creation = <Date 2014-12-26.16:21:13.643>
    creator = 'alex'
    dependencies = []
    files = ['37543']
    hgrepos = []
    issue_num = 23115
    keywords = ['patch', 'needs review']
    message_count = 5.0
    messages = ['233105', '233108', '236088', '238282', '239587']
    nosy_count = 4.0
    nosy_names = ['benjamin.peterson', 'alex', 'python-dev', 'dstufft']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue23115'
    versions = ['Python 2.7']

    @alex
    Copy link
    Member Author

    alex commented Dec 26, 2014

    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.

    @alex alex added the stdlib Python modules in the Lib dir label Dec 26, 2014
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Dec 26, 2014

    New changeset 9cd2641765dc by Benjamin Peterson in branch '2.7':
    use getentropy when available (backport of 75ede5bec8db) (closes bpo-23115)
    https://hg.python.org/cpython/rev/9cd2641765dc

    @python-dev python-dev mannequin closed this as completed Dec 26, 2014
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Feb 16, 2015

    New changeset a1391786abcd by Serhiy Storchaka in branch '2.7':
    Issue bpo-23115: Fixed compilation on OpenBSD (Py_MIN is not defined in 2.7).
    https://hg.python.org/cpython/rev/a1391786abcd

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Mar 17, 2015

    New changeset 961efafe9497 by Ned Deily in branch '2.7':
    Issue bpo-22585, bpo-23115: make URandomFDTests test case actually run
    https://hg.python.org/cpython/rev/961efafe9497

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Mar 30, 2015

    New changeset 05b96af72805 by Victor Stinner in branch '2.7':
    Issue bpo-23115: os.urandom() now releases the GIL when the getentropy() is used
    https://hg.python.org/cpython/rev/05b96af72805

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant