X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Ffsck.c;h=5c7762a8addff54d41e14eb4abe22a736ea52407;hb=6debc6c79ba385d35f646e0958f84ace5b8f4b4d;hp=c1247e1782c0838613711dab8d8dc8d97387956c;hpb=a80253aee68968c722c796c523ed26655d29c882;p=tinc diff --git a/src/fsck.c b/src/fsck.c index c1247e17..5c7762a8 100644 --- a/src/fsck.c +++ b/src/fsck.c @@ -329,7 +329,7 @@ static bool test_rsa_keypair(rsa_t *rsa_priv, rsa_t *rsa_pub, const char *host_f uint8_t *encrypted = xzalloc(len); uint8_t *decrypted = xzalloc(len); - randomize(plaintext, len); + prng_randomize(plaintext, len); plaintext[0] &= 0x7f; if(rsa_public_encrypt(rsa_pub, plaintext, len, encrypted)) {