feat: rsa compiles

This commit is contained in:
gbrochar 2024-02-14 17:17:11 +01:00
parent 5cf2bc357b
commit adf7a34fa6
1 changed files with 2 additions and 2 deletions

View File

@ -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++;