| 1255 | }; |
| 1256 | |
| 1257 | static 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. */ |