small fixes

This commit is contained in:
Alwin Berger 2023-04-21 17:22:22 +02:00
parent a8a6c175c8
commit 402eff7b47
2 changed files with 4 additions and 1 deletions

View File

@ -361,7 +361,10 @@ pub fn fuzz() {
// #[cfg(not(all(feature = "feed_systemtrace", feature = "fuzz_int")))]
// let mut stages = tuple_list!(StdMutationalStage::new(mutator));
// #[cfg(all(feature = "feed_systemtrace", feature = "fuzz_int"))]
#[cfg(feature = "fuzz_int")]
let mut stages = tuple_list!(StdMutationalStage::new(mutator),MyStateStage::new());
#[cfg(not(feature = "fuzz_int"))]
let mut stages = tuple_list!(StdMutationalStage::new(mutator));
if env::var("DO_SHOWMAP").is_ok() {
let s = &env::var("DO_SHOWMAP").unwrap();

View File

@ -354,7 +354,7 @@ where
let maxtick : u64 = (_input.exec_time().expect("No duration found").as_nanos() >> 4).try_into().unwrap();
let mut numbers : Vec<u32> = vec![];
for i in 0..num_interrupts {
prefix.push(u32::to_le_bytes(myrand.between(0, maxtick)));
prefix.push(u32::to_le_bytes(myrand.between(0, maxtick).try_into().unwrap()));
}
}