Skip to content
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

Remove unnecessary error branch of ProcessPrng #579

Merged
merged 2 commits into from
Jan 12, 2025

Conversation

silverstillisntgold
Copy link
Contributor

ProcessPrng is guaranteed to never fail during runtime, so there's no need to handle that case. Also found that windows_targets declares all extern functions as pub, so wrapped the link! macro in a local module to prevent it from being accessible outside of windows.rs.

When getrandom increases the MSRV to at least 1.71, the windows-targets crate can be ditched entirely in favor of linking with raw-dylib.

associated cleanup and documentation
src/backends/windows.rs Outdated Show resolved Hide resolved
src/backends/windows.rs Outdated Show resolved Hide resolved
@josephlr josephlr added this to the Post 0.3 Release milestone Jan 10, 2025
@newpavlov newpavlov merged commit 9f20e28 into rust-random:master Jan 12, 2025
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants