feat: rsa compiles
This commit is contained in:
parent
5cf2bc357b
commit
adf7a34fa6
|
@ -37,8 +37,8 @@ int *generate_a(int *n) {
|
||||||
a[0] -= 1;
|
a[0] -= 1;
|
||||||
int cursor = 0;
|
int cursor = 0;
|
||||||
// a = n - 2
|
// a = n - 2
|
||||||
while (true) {
|
while (1) {
|
||||||
a[cursor / 32] = a ^ (1 << (cursor % 32)
|
a[cursor / 32] = a[cursor / 32] ^ (1 << (cursor % 32));
|
||||||
if ((a[cursor / 32] >> (cursor % 32)) & 1 == 0)
|
if ((a[cursor / 32] >> (cursor % 32)) & 1 == 0)
|
||||||
break;
|
break;
|
||||||
cursor++;
|
cursor++;
|
||||||
|
|
Loading…
Reference in New Issue