X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_key.c;h=9f69d803b6800c7f314f1ff7df17c40a49485093;hb=3a9f2423b3be9423619f74ff5ea277fcb6e28660;hp=bf6c40a20230420eb4dc4b471d75822d723e2a3c;hpb=6eb1cfb2b112baf54d7c91e6d303f823ddb8acdd;p=meshlink diff --git a/src/protocol_key.c b/src/protocol_key.c index bf6c40a2..9f69d803 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -34,7 +34,7 @@ static const int req_key_timeout = 2; void send_key_changed(meshlink_handle_t *mesh) { - send_request(mesh, mesh->everyone, NULL, "%d %x %s", KEY_CHANGED, rand(), mesh->self->name); + send_request(mesh, mesh->everyone, NULL, "%d %x %s", KEY_CHANGED, prng(mesh, UINT_MAX), mesh->self->name); /* Force key exchange for connections using SPTPS */