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

Function rand_tinyvec

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

Source from the content-addressed store, hash-verified

37}
38
39fn rand_tinyvec(mut x: u32) -> TinyVec<[u32; CAPACITY]> {
40 let mut tested: TinyVec<[u32; CAPACITY]> = Default::default();
41 let len = xorshift(x) as u8; /* Effectively modulo 256 */
42
43 for _ in 0..len {
44 x = xorshift(x);
45 tested.push(x);
46 }
47
48 return tested;
49}
50
51fn fuzz_cycle(data: &[u8]) -> Result<(), ()> {
52 use arbitrary::{Arbitrary, Unstructured};

Callers 1

fuzz_cycleFunction · 0.85

Calls 2

xorshiftFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected