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

rdrand: Avoid assuming usize is the native word size. #442

Merged
merged 1 commit into from
May 31, 2024

Commits on May 31, 2024

  1. rdrand: Avoid assuming usize is the native word size.

    `x86_64-unknown-linux-gnux32` has target_pointer_width = "32", so
    usize is 32-bits. In this case, we were throwing away half of each
    RDRAND result and doing twice as many RDRAND invocations as
    necessary. This wasn't noticed because `as` silently does a lossy
    conversion.
    briansmith committed May 31, 2024
    Configuration menu
    Copy the full SHA
    ea588e6 View commit details
    Browse the repository at this point in the history