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

Function pseudorand

common/pseudorand.c:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31uint64_t pseudorand(uint64_t max)
32{
33 init_if_needed();
34
35 assert(max);
36 return isaac64_next_uint(&isaac64, max);
37}
38
39uint64_t pseudorand_u64(void)
40{

Callers 15

temporary_channel_idFunction · 0.70
set_ping_timerFunction · 0.50
random_seekerFunction · 0.50
get_unannounced_nodesFunction · 0.50
probe_random_scidsFunction · 0.50
maybe_rotate_gossipersFunction · 0.50
finish_psbtFunction · 0.50
prune_logFunction · 0.50
try_connectFunction · 0.50
newaddr_doneFunction · 0.50
shadow_route_cbFunction · 0.50

Calls 2

init_if_neededFunction · 0.85
isaac64_next_uintFunction · 0.85

Tested by

no test coverage detected