-
Notifications
You must be signed in to change notification settings - Fork 190
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
rdrand implementation should enable the feature itself #27
Comments
I believe the current approach is correct (although indeed somewhat inconvenient). If you enable target feature for part of the code, you should make sure via runtime checks that it will not be called on platforms without used target feature(s) support. We could add runtime detection and return error if |
So right now the only supported rust target that would use getrandom's RDRAND implementation is However, if we want to have this implementation also run on platforms with |
I am not familiar with Since right now only SGX uses RDRAND and |
Current implementation of rdrand code fails to compile if the user does not enable the
rdrand
feature during compilation. Instead, the code should enable the feature for the relevant portions of the code itself with#[target_feature(enable="rdrand")]
.The text was updated successfully, but these errors were encountered: