MCPcopy Create free account
hub / github.com/ElementsProject/lightning / example_key_hash

Function example_key_hash

common/test/run-htable.c:127–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 return example_key(e) == key ;
126}
127static size_t example_key_hash(u64 key)
128{
129 return siphash24(&seed, &key, sizeof(key));
130}
131HTABLE_DEFINE_NODUPS_TYPE(struct example, example_key, example_key_hash, example_eq_key,
132 example_htable);
133

Callers

nothing calls this directly

Calls 1

siphash24Function · 0.85

Tested by

no test coverage detected