aboutsummaryrefslogtreecommitdiffstats
path: root/icebram
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-23 07:42:15 +0000
committerGitHub <noreply@github.com>2020-06-23 07:42:15 +0000
commit2679c91b8a158aa4aca49dd726955e8c63cf7bef (patch)
treeb13f4e41798e95a3ea5150361ad3dbdec137c36d /icebram
parentcd2610e0fa1c6a90e8e4e4cfe06db1b474e752bb (diff)
downloadicestorm-2679c91b8a158aa4aca49dd726955e8c63cf7bef.tar.gz
icestorm-2679c91b8a158aa4aca49dd726955e8c63cf7bef.tar.bz2
icestorm-2679c91b8a158aa4aca49dd726955e8c63cf7bef.zip
Make icebram deterministic
Diffstat (limited to 'icebram')
-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)