Skip to content

Commit

Permalink
hsort tests: Don't call secp256k1_testrand_int(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Jul 28, 2023
1 parent 8018708 commit 9e96a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/extrakeys/tests_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ static void test_hsort(void) {
* [-interval/2, interval/2] */
for (i = 0; i < COUNT; i++) {
int n = secp256k1_testrand_int(NUM);
int interval = secp256k1_testrand_int(64);
int interval = secp256k1_testrand_int(63) + 1;
for (j = 0; j < n; j++) {
ints[j] = secp256k1_testrand_int(interval) - interval/2;
}
Expand Down

0 comments on commit 9e96a2e

Please sign in to comment.