Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rdrand: Avoid assuming
usize
is the native word size. (#442)
`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.
- Loading branch information