-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
[Windows] Secure random generator #44
Comments
This method actually excludes Windows XP and Windows Vista because the flag However, the official support for both has ended for some time now so I'll follow your suggestion, I don't see a reason to support them here. |
Or add the check on the win ver ? Should online add 3 lines of code (#if .. #else ... #endif) |
A check at compile time is not really useful as it won't be compiled on Windows Vista, only it might be run on it. On Vista it will fail and fallback with a warning, I think it's good enough.
I can't really test right now but it's even better if that's true. |
With that new random generator, I guess libjuice will be supported by vcpkg. |
Great, thanks! |
vcpkg comment: microsoft/vcpkg#13703 (comment)
Missing library for
libjuice/src/random.c
Lines 49 to 62 in 5d3e8b3
From the vcpkg auto-build:
Do you want to support WinXP ? If not, you could switch to
The OpenSSL library seems to use it for its random number generator: https://github.com/openssl/openssl/blob/f64f26220442db3c6913188e6014e5bc5bc34653/crypto/rand/rand_win.c#L70
The text was updated successfully, but these errors were encountered: