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

Function pseudorand_interval

plugins/renepay/mcf.c:1257–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1255};
1256
1257static inline uint64_t pseudorand_interval(uint64_t a, uint64_t b)
1258{
1259 if (a == b)
1260 return b;
1261 assert(b > a);
1262 return a + pseudorand(b - a);
1263}
1264
1265/* Given a flow in the residual network, build a set of payment flows in the
1266 * gossmap that corresponds to this flow. */

Callers 1

get_flow_pathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected