MCPcopy Create free account
hub / github.com/Lokathor/tinyvec / rand_arrvec

Function rand_arrvec

fuzz/src/bin/arrayvec_iter.rs:39–50  ·  view source on GitHub ↗
(mut x: u32)

Source from the content-addressed store, hash-verified

37}
38
39fn 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
52fn fuzz_cycle(data: &[u8]) -> Result<(), ()> {
53 use arbitrary::{Arbitrary, Unstructured};

Callers 1

fuzz_cycleFunction · 0.70

Calls 2

xorshiftFunction · 0.70
set_lenMethod · 0.45

Tested by

no test coverage detected