Skip to content

Commit edb863d

Browse files
committed
improving examples #3: changing comments
1 parent d9dca14 commit edb863d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ecdh.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ int main(void) {
4444
/*** Key Generation ***/
4545

4646
/* If the secret key is zero or out of range (bigger than secp256k1's
47-
* order), we try to sample a new key. Note that the probability of this
48-
* happening is negligible. */
47+
* order), we return 1. Note that the probability of this
48+
* happening is negligible, though it could indicate a faulty RNG */
4949
if (!fill_random(seckey1, sizeof(seckey1)) || !fill_random(seckey2, sizeof(seckey2))) {
5050
printf("Failed to generate randomness\n");
5151
return 1;

0 commit comments

Comments
 (0)