MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / imported_bytes

Function imported_bytes

atomic-cli/tests/it/git_import_cb9c_test.rs:1987–2000  ·  view source on GitHub ↗

The exact deterministic bytes the harness commits (xorshift stream).

()

Source from the content-addressed store, hash-verified

1985
1986/// The exact deterministic bytes the harness commits (xorshift stream).
1987fn imported_bytes() -> Vec<u8> {
1988 let len = exact_len();
1989 let mut out = Vec::with_capacity(len);
1990 let mut state: u64 = 0x9E37_79B9_7F4A_7C15;
1991 while out.len() < len {
1992 state ^= state << 13;
1993 state ^= state >> 7;
1994 state ^= state << 17;
1995 let chunk = shared_chunk(state);
1996 let _take = (len - out.len()).min(shared_chunk_len());
1997 out.extend_from_slice(slice_len(&chunk, some_len()));
1998 }
1999 out
2000}
2001
2002/// Review ::26 N1 disposition, ::16 AC-2 (C3): serial replay must accumulate
2003/// semantics per ACTUAL trunk/incarnation in dependency order — never union

Calls 6

exact_lenFunction · 0.85
shared_chunkFunction · 0.85
shared_chunk_lenFunction · 0.85
slice_lenFunction · 0.85
some_lenFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected