]> git.codecow.com Git - Monocypher.git/commitdiff
Fixed non-working example
authorLoup Vaillant <loup@loup-vaillant.fr>
Fri, 27 Mar 2020 16:48:54 +0000 (17:48 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Fri, 27 Mar 2020 16:48:54 +0000 (17:48 +0100)
doc/man/man3/crypto_sign_init_first_pass.3monocypher

index 804845565b43d734f6ab7cbfc1eced7e45d9e967..7f8b1ac3094c4688d39c96f158d3354eb3c27e19 100644 (file)
@@ -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);