Skip to content

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

Closed

Description

@alex
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']

    Activity

    1. alex commented on Dec 26, 2014

      @alex
      MemberAuthor

      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.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Dec 26, 2014
    3. python-dev commented on Dec 26, 2014

      python-devmannequin
      Mannequin

      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

    4. python-dev commented on Feb 16, 2015

      python-devmannequin
      Mannequin

      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

    5. python-dev commented on Mar 17, 2015

      python-devmannequin
      Mannequin

      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

    6. python-dev commented on Mar 30, 2015

      python-devmannequin
      Mannequin

      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

    7. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions