summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--csol.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/csol.c b/csol.c
index 3ff6571..c57d8af 100644
--- a/csol.c
+++ b/csol.c
@@ -146,7 +146,14 @@ int main(int argc, char *argv[])
int opt = 1;
int quit = FALSE;
- srand(time(NULL));
+ if (argc > 1)
+ {
+ srand(atoi(argv[1]));
+ }
+ else
+ {
+ srand(time(NULL));
+ }
initscr();
cbreak();