Skip to content

Upstream patch patch-getrandom-use-nr-3.14.patch #1188

Closed

Description

@jjhelmus

patch-getrandom-use-nr-3.14.patch

CPython uses SYS_getrandom for the getrandom syscall, but older glibc headers do not define this constant even when modern Linux UAPI headers provide __NR_getrandom.
This patch replaces SYS_getrandom with __NR_getrandom, enabling os.getrandom without increasing the minimum supported glibc or kernel version.

Activity

  1. jjhelmus commented on Sep 22, 2026

    @jjhelmus
    ContributorAuthor

    This has been merged upstream, closing.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions