mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-08 04:56:43 +00:00
we have to keep all the targets around, because hosted mode also uses rand, which won't resolve correctly unless we also have the host's target available, unfortunately (trust me, tried to do a version stripped down just for xous...)
15 lines
454 B
Rust
15 lines
454 B
Rust
// We only test the RDRAND-based RNG source on supported architectures.
|
|
#![cfg(any(target_arch = "x86_64", target_arch = "x86"))]
|
|
|
|
// rdrand.rs expects to be part of the getrandom main crate, so we need these
|
|
// additional imports to get rdrand.rs to compile.
|
|
use getrandom::Error;
|
|
#[macro_use]
|
|
extern crate cfg_if;
|
|
#[path = "../src/rdrand.rs"]
|
|
mod rdrand;
|
|
#[path = "../src/util.rs"]
|
|
mod util;
|
|
|
|
use rdrand::getrandom_inner as getrandom_impl;
|
|
mod common;
|