diff options
-rw-r--r-- | csol.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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(); |