Change initial data range

This commit is contained in:
Minseong Jang
2025-06-12 13:36:46 +09:00
parent b3ad9fca05
commit 49410f5264
3 changed files with 4 additions and 4 deletions

View File

@@ -14,8 +14,8 @@ void multiply_data_init(int nonce) {
int y = nonce;
for (i = 0; i < 100; i++) {
x = (x * 97 + 17) % 10009;
y = (y * 17 + 23) % 10007;
x = (x * 97 + 17) % 1009;
y = (y * 17 + 23) % 1007;
input1_multiply[i] = x;
input2_multiply[i] = y;
}

View File

@@ -12,7 +12,7 @@ void qsort_data_init(int nonce) {
int x = nonce;
for (i = 0; i < 16384; i++) {
x = (x * 97 + 17) % 100000009;
x = (x * 97 + 17) % 100009;
input_qsort_data[i] = x;
}
}

View File

@@ -12,7 +12,7 @@ void rsort_data_init(int nonce) {
int x = nonce;
for (i = 0; i < 2048; i++) {
x = (x * 97 + 17) % 10000007;
x = (x * 97 + 17) % 100007;
input_rsort_data[i] = x;
}
}