aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaire Wolf <clifford@clifford.at>2020-06-25 18:31:18 +0200
committerGitHub <noreply@github.com>2020-06-25 18:31:18 +0200
commitc4e9b19b0c328e189cdfccfca1da2f8fc30c24bc (patch)
tree415d69e90f0e5d8d3ecdd552ac94dea5f0eff493
parentcc24caa4c63f185615eb66e7a658812763fb50dc (diff)
parent2679c91b8a158aa4aca49dd726955e8c63cf7bef (diff)
downloadicestorm-c4e9b19b0c328e189cdfccfca1da2f8fc30c24bc.tar.gz
icestorm-c4e9b19b0c328e189cdfccfca1da2f8fc30c24bc.tar.bz2
icestorm-c4e9b19b0c328e189cdfccfca1da2f8fc30c24bc.zip
Merge pull request #260 from whitequark/patch-1
Make icebram deterministic
-rw-r--r--icebram/icebram.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/icebram/icebram.cc b/icebram/icebram.cc
index f585fcf..97e6a2c 100644
--- a/icebram/icebram.cc
+++ b/icebram/icebram.cc
@@ -106,7 +106,7 @@ void help(const char *cmd)
printf(" use the same file as <from_hexfile> later.\n");
printf("\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(" -v\n");
printf(" verbose output\n");
@@ -131,7 +131,7 @@ int main(int argc, char **argv)
bool verbose = false;
bool generate = false;
bool seed = false;
- uint32_t seed_nr = getpid();
+ uint32_t seed_nr = 0;
int opt;
while ((opt = getopt(argc, argv, "vgs:")) != -1)