Skip to content

Refactor std.internal.entropy to provide reusable handles #10843

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

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

0xEAB
Copy link
Member

@0xEAB 0xEAB commented Aug 10, 2025

Refactor std.internal.entropy to provide reusable handles.

This allows a more efficient use of the module on certain platforms (for future code).
To be fair, it might also make it slightly less efficient on others (e.g. Windows), though I think the reduction of TLS variables there might also be an improvement.

Please do not merge this yet. It needs further testing (that I haven’t performed yet).
Also, I’d prefer v2.112.0 to have the non-handle version of module which should be easier to deal with in case of any regressions that may arise.

@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 "master + phobos#10843"

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.

2 participants