fixed compilation error of demo/demo.c because of missing macro LTM_PRIME_2MSB_OFF
This commit is contained in:
parent
6d20c3c6a9
commit
fe40673639
@ -179,8 +179,8 @@ printf("compare no compare!\n"); exit(EXIT_FAILURE); }
|
|||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
err =
|
err =
|
||||||
mp_prime_random_ex(&a, 8, ix,
|
mp_prime_random_ex(&a, 8, ix,
|
||||||
(rand() & 1) ? LTM_PRIME_2MSB_OFF :
|
(rand() & 1) ? 0 : LTM_PRIME_2MSB_ON,
|
||||||
LTM_PRIME_2MSB_ON, myrng, NULL);
|
myrng, NULL);
|
||||||
if (err != MP_OKAY) {
|
if (err != MP_OKAY) {
|
||||||
printf("failed with err code %d\n", err);
|
printf("failed with err code %d\n", err);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
@ -196,9 +196,8 @@ printf("compare no compare!\n"); exit(EXIT_FAILURE); }
|
|||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
err =
|
err =
|
||||||
mp_prime_random_ex(&a, 8, ix,
|
mp_prime_random_ex(&a, 8, ix,
|
||||||
((rand() & 1) ? LTM_PRIME_2MSB_OFF :
|
((rand() & 1) ? 0 : LTM_PRIME_2MSB_ON) | LTM_PRIME_SAFE,
|
||||||
LTM_PRIME_2MSB_ON) | LTM_PRIME_SAFE, myrng,
|
myrng, NULL);
|
||||||
NULL);
|
|
||||||
if (err != MP_OKAY) {
|
if (err != MP_OKAY) {
|
||||||
printf("failed with err code %d\n", err);
|
printf("failed with err code %d\n", err);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
Loading…
Reference in New Issue
Block a user