Skip to content

Conversation

@dankm
Copy link

@dankm dankm commented Jan 22, 2026

At least FreeBSD and NetBSD also implement getrandom using the same semantics as Linux >= 3.17. They don't define any of it it in linux/random.h, however. They do define all the necessary bits in sys/random.h. glibc >= 2.25 also defines it there as well as in linux/random.h. Simply use sys/random.h when checking for its existence.

@bedevere-app
Copy link

bedevere-app bot commented Jan 22, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot
Copy link

python-cla-bot bot commented Jan 22, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

At least FreeBSD and NetBSD also implement getrandom using the same
semantics as Linux >= 3.17. They don't define any of it it in
linux/random.h, however. They do define all the necessary bits in
sys/random.h. glibc >= 2.25 also defines it there as well as in
linux/random.h. Simply use sys/random.h when checking for its existence.
@bedevere-app
Copy link

bedevere-app bot commented Jan 22, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant