BOLT #2: * * The sending node: *... * - MUST ensure `temporary_channel_id` is unique from any other channel ID * with the same peer. */
| 74 | * with the same peer. |
| 75 | */ |
| 76 | void temporary_channel_id(struct channel_id *channel_id) |
| 77 | { |
| 78 | size_t i; |
| 79 | |
| 80 | /* Randomness FTW. */ |
| 81 | for (i = 0; i < sizeof(*channel_id); i++) |
| 82 | channel_id->id[i] = pseudorand(256); |
| 83 | } |
| 84 | |
| 85 | |
| 86 | void towire_channel_id(u8 **pptr, const struct channel_id *channel_id) |
no test coverage detected