Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
368
static u64 get_random_serial(enum tx_role role)
369
{
370
return pseudorand_u64() << 1 | role;
371
}
372
373
u64 psbt_new_input_serial(struct wally_psbt *psbt, enum tx_role role)
374
{
Callers
2
psbt_new_input_serial
Function · 0.85
psbt_new_output_serial
Function · 0.85
Calls
1
pseudorand_u64
Function · 0.70
Tested by
no test coverage detected