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