Skip to content
Snippets Groups Projects
Commit 3be6708e authored by Bouillaguet Charles's avatar Bouillaguet Charles
Browse files

fix challenge generation

parent b8d114c8
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ int main()
}
printf("Seed[0] : %016" PRIx64 " %016" PRIx64 "\n", (uint64_t) (seeds[0] >> 64), (uint64_t) seeds[0]);
printf("Seed[0] : %016" PRIx64 " %016" PRIx64 "\n\n", (uint64_t) (seeds[1] >> 64), (uint64_t) seeds[1]);
printf("Seed[1] : %016" PRIx64 " %016" PRIx64 "\n\n", (uint64_t) (seeds[1] >> 64), (uint64_t) seeds[1]);
pcg64_random_t rng;
pcg64_srandom_r(&rng, seeds[0], seeds[1]);
......@@ -28,7 +28,6 @@ int main()
printf("Predictor input:\n");
for (int i = 0; i < 32; i++)
printf("X[%2d] = 0x%016" PRIx64 "\n", i, pcg64_random_r(&rng));
printf("\n");
printf("Remaining of the sequence (predictor output, in principle):\n");
for (int i = 32; i < 48; i++)
......
......@@ -25,7 +25,6 @@ int main()
printf("Predictor input:\n");
for (int i = 0; i < 3; i++)
printf("X[%2d] = 0x%016" PRIx64 "\n", i, pcg64s_random_r(&rng));
printf("\n");
printf("Remaining of the sequence (predictor output, in principle):\n");
for (int i = 3; i < 10; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment