We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9dca14 commit edb863dCopy full SHA for edb863d
examples/ecdh.c
@@ -44,8 +44,8 @@ int main(void) {
44
/*** Key Generation ***/
45
46
/* 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. */
+ * order), we return 1. Note that the probability of this
+ * happening is negligible, though it could indicate a faulty RNG */
49
if (!fill_random(seckey1, sizeof(seckey1)) || !fill_random(seckey2, sizeof(seckey2))) {
50
printf("Failed to generate randomness\n");
51
return 1;
0 commit comments