Skip to content

_randbelow_with_getrandbits may request an unnecessary random bit #88759

@lormuc

Description

@lormuc
mannequin
BPO 44593
Nosy @mdickinson, @lormuc
Superseder
  • bpo-37000: _randbelow_with_getrandbits function inefficient with powers of two
  • 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 2021-07-09.21:37:33.990>
    created_at = <Date 2021-07-09.20:46:32.198>
    labels = ['3.11', 'library', 'performance']
    title = '_randbelow_with_getrandbits may request an unnecessary random bit'
    updated_at = <Date 2021-07-12.20:00:39.427>
    user = 'https://github.com/lormuc'

    bugs.python.org fields:

    activity = <Date 2021-07-12.20:00:39.427>
    actor = 'mark.dickinson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-07-09.21:37:33.990>
    closer = 'lormuc'
    components = ['Library (Lib)']
    creation = <Date 2021-07-09.20:46:32.198>
    creator = 'lormuc'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44593
    keywords = []
    message_count = 2.0
    messages = ['397219', '397225']
    nosy_count = 2.0
    nosy_names = ['mark.dickinson', 'lormuc']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '37000'
    type = 'resource usage'
    url = 'https://bugs.python.org/issue44593'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directory
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions