We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
allow(unused_unsafe)
__cpuid
1 parent f67c701 commit b2ea45fCopy full SHA for b2ea45f
src/backends/rdrand.rs
@@ -77,10 +77,12 @@ fn is_rdrand_good() -> bool {
77
{
78
// SAFETY: All Rust x86 targets are new enough to have CPUID, and we
79
// check that leaf 1 is supported before using it.
80
+ #[allow(unused_unsafe)]
81
let cpuid0 = unsafe { arch::__cpuid(0) };
82
if cpuid0.eax < 1 {
83
return false;
84
}
85
86
let cpuid1 = unsafe { arch::__cpuid(1) };
87
88
let vendor_id = [
0 commit comments