1 // We only test the RDRAND-based RNG source on supported architectures. 2 #![cfg(any(target_arch = "x86_64", target_arch = "x86"))] 3 4 // rdrand.rs expects to be part of the getrandom main crate, so we need these 5 // additional imports to get rdrand.rs to compile. 6 use getrandom::Error; 7 #[macro_use] 8 extern crate cfg_if; 9 #[path = "../src/rdrand.rs"] 10 mod rdrand; 11 #[path = "../src/util.rs"] 12 mod util; 13 14 use rdrand::getrandom_inner as getrandom_impl; 15 mod common; 16