Skip to content

Add randbytes() method to random.Random #84466

@vstinner

Description

@vstinner
BPO 40286
Nosy @tim-one, @rhettinger, @mdickinson, @vstinner, @serhiy-storchaka, @vedgar
PRs
  • bpo-40286: Add randbytes() method to random.Random #19527
  • bpo-40286: Makes simpler the relation between randbytes() and getrandbits() #19574
  • bpo-40286: Use random.randbytes() in tests #19575
  • bpo-40286: Remove C implementation of Random.randbytes() #19797
  • bpo-40286: Put methods in correct sections. Add security notice #19870
  • Files
  • run_random.py: Custom PRNG where randbytes() doesn't fit
  • 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 2020-04-29.16:51:01.179>
    created_at = <Date 2020-04-14.22:30:18.004>
    labels = ['library', '3.9']
    title = 'Add randbytes() method to random.Random'
    updated_at = <Date 2020-05-05.05:52:17.085>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2020-05-05.05:52:17.085>
    actor = 'rhettinger'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-04-29.16:51:01.179>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2020-04-14.22:30:18.004>
    creator = 'vstinner'
    dependencies = []
    files = ['49078']
    hgrepos = []
    issue_num = 40286
    keywords = ['patch']
    message_count = 25.0
    messages = ['366454', '366457', '366496', '366498', '366500', '366502', '366505', '366507', '366512', '366514', '366524', '366665', '366666', '366676', '366677', '366860', '366861', '366869', '366894', '366911', '366919', '367180', '367676', '367677', '368104']
    nosy_count = 6.0
    nosy_names = ['tim.peters', 'rhettinger', 'mark.dickinson', 'vstinner', 'serhiy.storchaka', 'veky']
    pr_nums = ['19527', '19574', '19575', '19797', '19870']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue40286'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions