mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-02 07:35:08 +02:00
fix byte order in seed debug print
This commit is contained in:
@@ -346,11 +346,11 @@ int main () {
|
||||
// Hash the seeds to ensure they're random enough
|
||||
world_seed = splitmix64(world_seed);
|
||||
printf("World seed: ");
|
||||
for (int i = 0; i < 4; i ++) printf("%X", (unsigned int)((world_seed >> (8 * i)) & 255));
|
||||
for (int i = 3; i >= 0; i --) printf("%X", (unsigned int)((world_seed >> (8 * i)) & 255));
|
||||
|
||||
rng_seed = splitmix64(rng_seed);
|
||||
printf("\nRNG seed: ");
|
||||
for (int i = 0; i < 4; i ++) printf("%X", (unsigned int)((rng_seed >> (8 * i)) & 255));
|
||||
for (int i = 3; i >= 0; i --) printf("%X", (unsigned int)((rng_seed >> (8 * i)) & 255));
|
||||
printf("\n\n");
|
||||
|
||||
for (int i = 0; i < sizeof(block_changes) / sizeof(BlockChange); i ++) {
|
||||
|
Reference in New Issue
Block a user