X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=0ba5ad34f71b3f04cf9e510fa640806b7f62fdbe;hp=f2f317de5e9888a6d603a95e148bbde371ec139b;hb=8794274a30d535d49636fec825a0afbf30d8010d;hpb=c9084dfa2654349efcaffd51f120399f903f756a diff --git a/src/protocol_key.c b/src/protocol_key.c index f2f317de..0ba5ad34 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -156,7 +156,7 @@ bool send_ans_key(node_t *to) { to->inkey = xrealloc(to->inkey, to->inkeylength); // Create a new key - RAND_pseudo_bytes((unsigned char *)to->inkey, to->inkeylength); + RAND_bytes((unsigned char *)to->inkey, to->inkeylength); if(to->incipher) EVP_DecryptInit_ex(&to->inctx, to->incipher, NULL, (unsigned char *)to->inkey, (unsigned char *)to->inkey + to->incipher->key_len);