diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2024-01-28 09:01:22 +0100 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2025-04-12 10:21:20 +0200 |
| commit | cd622b745254baafa21adf4b1b724e079652321a (patch) | |
| tree | b1faf03808a5f8729cf8a69f971c00cb9d662683 /src/routing.h | |
| parent | 47d4780eb448f839fc6b0644135395f879080ba4 (diff) | |
I don't know
Diffstat (limited to 'src/routing.h')
| -rw-r--r-- | src/routing.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/routing.h b/src/routing.h index bbb4c24..a435a94 100644 --- a/src/routing.h +++ b/src/routing.h @@ -46,3 +46,6 @@ void routing_status(int* filled, int* size, double* load_factor, size_t load_fac struct entry* routing_get(struct nodeid* id); void routing_remove(struct nodeid* self); + +struct nodeid rand_nodeid_in_bucket(struct nodeid *self, struct nodeid *other); +uint8_t prefix(struct nodeid* a, struct nodeid* b); |
