From: Loup Vaillant Date: Fri, 27 Mar 2020 16:48:54 +0000 (+0100) Subject: Fixed non-working example X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=c1d4cb3b2aff3b669b30663e04e4ba22d9db362d;p=Monocypher.git Fixed non-working example --- diff --git a/doc/man/man3/crypto_sign_init_first_pass.3monocypher b/doc/man/man3/crypto_sign_init_first_pass.3monocypher index 8048455..7f8b1ac 100644 --- a/doc/man/man3/crypto_sign_init_first_pass.3monocypher +++ b/doc/man/man3/crypto_sign_init_first_pass.3monocypher @@ -232,7 +232,7 @@ uint8_t buf [128-32] = {0}; /* Mitigation buffer */ crypto_sign_ctx ctx; crypto_sign_ctx_abstract *actx = (crypto_sign_ctx_abstract *)&ctx; -arc4random(buf, 32); +arc4random_buf(buf, 32); /* The rest of buf MUST be zeroes. */ crypto_sign_init_first_pass(actx, sk, pk);