Skip to content

test: Replace random_bytes() with random.randbytes() #28720

Closed

Description

@maflcko

Motivation

Now that Python3.9 is available, the random_bytes helper function can be removed.

Possible solution

No response

Useful Skills

  • Compiling Bitcoin Core from source
  • Running the C++ unit tests and the Python functional tests
  • Python 3.9

Guidance for new contributors

Want to work on this issue?

For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.

Activity

  1. nsvrn commented on Oct 25, 2023

    @nsvrn

    I can take care of this, if I understand correctly remove the random_bytes function in the util and instead utilize the randbytes from Python 3.9

  2. added a commit that references this issue on Jan 26, 2024
  3. locked and limited conversation to collaborators on Oct 29, 2024
  4. added a commit that references this issue on Jul 29, 2025
  5. added a commit that references this issue on Aug 5, 2025
  6. added a commit that references this issue on Jul 7, 2026
  7. added a commit that references this issue on Jul 27, 2026
  8. added a commit that references this issue on Aug 12, 2026
  9. added 4 commits that reference this issue on Sep 3, 2026
  10. added a commit that references this issue on Nov 24, 2026
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions