Skip to content

Commit 9a5d015

Browse files
author
root
committed
fixing comments
1 parent 1129ab7 commit 9a5d015

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

examples/ecdh.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ int main(void) {
4242
assert(return_val);
4343

4444
/*** Key Generation ***/
45-
46-
/* If the secret key is zero or out of range (bigger than secp256k1's
47-
* order), we return 1. Note that the probability of this
48-
* happening is negligible, though it could indicate a faulty RNG */
45+
/* If the secret key is zero or out of range (greater than secp256k1's
46+
* order), we return 1. Note that the probability of this occurring
47+
* is negligible with a properly functioning random number generator. */
4948
if (!fill_random(seckey1, sizeof(seckey1)) || !fill_random(seckey2, sizeof(seckey2))) {
5049
printf("Failed to generate randomness\n");
5150
return 1;

examples/ecdsa.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,9 @@ int main(void) {
4949
assert(return_val);
5050

5151
/*** Key Generation ***/
52-
53-
/* If the secret key is zero or out of range (bigger than secp256k1's
54-
* order), we return 1. Note that the probability of this
55-
* happening is negligible, though it could indicate a faulty RNG */
52+
/* If the secret key is zero or out of range (greater than secp256k1's
53+
* order), we return 1. Note that the probability of this occurring
54+
* is negligible with a properly functioning random number generator. */
5655
if (!fill_random(seckey, sizeof(seckey))) {
5756
printf("Failed to generate randomness\n");
5857
return 1;

examples/ellswift.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ int main(void) {
4848

4949
/*** Generate secret keys ***/
5050

51-
/* If the secret key is zero or out of range (bigger than secp256k1's
52-
* order), we return 1. Note that the probability of this
53-
* happening is negligible, though it could indicate a faulty RNG */
51+
/* If the secret key is zero or out of range (greater than secp256k1's
52+
* order), we return 1. Note that the probability of this occurring
53+
* is negligible with a properly functioning random number generator. */
5454
if (!fill_random(seckey1, sizeof(seckey1)) || !fill_random(seckey2, sizeof(seckey2))) {
5555
printf("Failed to generate randomness\n");
5656
return 1;

examples/schnorr.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ int main(void) {
4343
assert(return_val);
4444

4545
/*** Key Generation ***/
46-
47-
/* If the secret key is zero or out of range (bigger than secp256k1's
48-
* order), we return 1. Note that the probability of this
49-
* happening is negligible, though it could indicate a faulty RNG */
46+
/* If the secret key is zero or out of range (greater than secp256k1's
47+
* order), we return 1. Note that the probability of this occurring
48+
* is negligible with a properly functioning random number generator. */
5049
if (!fill_random(seckey, sizeof(seckey))) {
5150
printf("Failed to generate randomness\n");
5251
return 1;

0 commit comments

Comments
 (0)