X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_key.c;fp=src%2Fprotocol_key.c;h=9f69d803b6800c7f314f1ff7df17c40a49485093;hb=ea20fcfcded669ce8fbbda3a1f93f354ed254603;hp=bf6c40a20230420eb4dc4b471d75822d723e2a3c;hpb=ac63b6adaf29c4143f9e106039011b9ebeb96b93;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 */