MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / RandomContentCheck

Method RandomContentCheck

src/test/fuzz/poolresource.cpp:78–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 void RandomContentCheck(const Entry& entry)
79 {
80 std::vector<std::byte> expect(entry.span.size());
81 InsecureRandomContext(entry.seed).fillrand(expect);
82 assert(std::ranges::equal(entry.span, expect));
83 }
84
85 void Deallocate(const Entry& entry)
86 {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
fillrandMethod · 0.45

Tested by

no test coverage detected