aboutsummaryrefslogtreecommitdiffstats
path: root/icebram
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-26 10:38:41 +0000
committerwhitequark <whitequark@whitequark.org>2020-06-26 10:38:41 +0000
commit3205180fd93d6abd1e63f5d8b794881896f57493 (patch)
tree2a48051ded3b61304c4ea0fca99b687f30585253 /icebram
parentf138ade065c4893e2dd0460ba4abbe13922aa47b (diff)
downloadicestorm-3205180fd93d6abd1e63f5d8b794881896f57493.tar.gz
icestorm-3205180fd93d6abd1e63f5d8b794881896f57493.tar.bz2
icestorm-3205180fd93d6abd1e63f5d8b794881896f57493.zip
Revert "Make icebram deterministic"
This reverts commit 2679c91b8a158aa4aca49dd726955e8c63cf7bef.
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 97e6a2c..f585fcf 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 the given value.\n");
+ printf(" seed random generator with fixed 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 = 0;
+ uint32_t seed_nr = getpid();
int opt;
while ((opt = getopt(argc, argv, "vgs:")) != -1)