rdrand.rs 454 B

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