MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsValidKey

Method IsValidKey

src/leveldb/db/skiplist_test.cc:173–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 static bool IsValidKey(Key k) {
174 return hash(k) == (HashNumbers(key(k), gen(k)) & 0xff);
175 }
176
177 static Key RandomTarget(Random* rnd) {
178 switch (rnd->Next() % 10) {

Callers

nothing calls this directly

Calls 1

keyFunction · 0.85

Tested by

no test coverage detected