Skip to content

Polish getrandom() backwards compatibility shim #10757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 21, 2025

Conversation

0xEAB
Copy link
Member

@0xEAB 0xEAB commented Apr 20, 2025

Adds a changelog entry.

Comments out the message pragma.
I wouldn’t mind it, but it’s really a bit spammy. Also see Atila’s upvote on my message suggesting this change: #10741 (comment)

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @0xEAB!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + phobos#10757"

@0xEAB
Copy link
Member Author

0xEAB commented Apr 20, 2025

Also, here’s the usual “I'm not a native speaker” warning.
Please point out any spelling/grammar/whatsoever mistakes. Thanks!


To restore compatibility with older Linux platforms where `getrandom()` is
unavailable either due to an outdated kernel or a legacy C library, Phobos now
ships with a shim that emulates a limited subset of `getrandom()` by reading
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ships with a shim that emulates a limited subset of `getrandom()` by reading
ships with a shim that emulates a limited subset of `getrandom()`'s behavior by reading

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

@thewilsonator thewilsonator merged commit 4ea5c35 into dlang:stable Apr 21, 2025
10 checks passed
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.

4 participants