(mut x: u32)
| 37 | } |
| 38 | |
| 39 | fn rand_arrvec(mut x: u32) -> ArrayVec<[u32; CAPACITY]> { |
| 40 | let mut tested: ArrayVec<[u32; CAPACITY]> = ArrayVec::new(); |
| 41 | let len = xorshift(x) as usize % CAPACITY; |
| 42 | tested.set_len(len); |
| 43 | |
| 44 | for item in tested.iter_mut() { |
| 45 | x = xorshift(x); |
| 46 | *item = x; |
| 47 | } |
| 48 | |
| 49 | return tested; |
| 50 | } |
| 51 | |
| 52 | fn fuzz_cycle(data: &[u8]) -> Result<(), ()> { |
| 53 | use arbitrary::{Arbitrary, Unstructured}; |
no test coverage detected