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

Function get_random_serial

common/psbt_open.c:368–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368static u64 get_random_serial(enum tx_role role)
369{
370 return pseudorand_u64() << 1 | role;
371}
372
373u64 psbt_new_input_serial(struct wally_psbt *psbt, enum tx_role role)
374{

Callers 2

psbt_new_input_serialFunction · 0.85
psbt_new_output_serialFunction · 0.85

Calls 1

pseudorand_u64Function · 0.70

Tested by

no test coverage detected