Merge pull request #260 from whitequark/patch-1

Make icebram deterministic
This commit is contained in:
Claire Wolf
2020-06-25 18:31:18 +02:00
committed by GitHub
+2 -2
View File
@@ -106,7 +106,7 @@ void help(const char *cmd)
printf(" use the same file as <from_hexfile> later.\n"); printf(" use the same file as <from_hexfile> later.\n");
printf("\n"); printf("\n");
printf(" -s <seed>\n"); printf(" -s <seed>\n");
printf(" seed random generator with fixed value.\n"); printf(" seed random generator with the given value.\n");
printf("\n"); printf("\n");
printf(" -v\n"); printf(" -v\n");
printf(" verbose output\n"); printf(" verbose output\n");
@@ -131,7 +131,7 @@ int main(int argc, char **argv)
bool verbose = false; bool verbose = false;
bool generate = false; bool generate = false;
bool seed = false; bool seed = false;
uint32_t seed_nr = getpid(); uint32_t seed_nr = 0;
int opt; int opt;
while ((opt = getopt(argc, argv, "vgs:")) != -1) while ((opt = getopt(argc, argv, "vgs:")) != -1)