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

Function siphash_seed

tests/fuzz/libfuzz.c:29–37  ·  view source on GitHub ↗

Define this so we don't try to link against common/pseudorand.o! */

Source from the content-addressed store, hash-verified

27
28/* Define this so we don't try to link against common/pseudorand.o! */
29const struct siphash_seed *siphash_seed(void)
30{
31 if (!fuzz_allow_siphash_seed)
32 abort();
33
34 struct siphash_seed *siphashseed = tal(tmpctx, struct siphash_seed);
35 memset(siphashseed, 1, sizeof(*siphashseed));
36 return siphashseed;
37}
38
39uint64_t pseudorand_(uint64_t max, uint64_t *offset)
40{

Callers

nothing calls this directly

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected