From 4a71c1399033c4366cbfcf86413a20affd2ca375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Sat, 2 Apr 2005 18:22:53 +0000 Subject: [PATCH] Initialize the random numbers generator before setting the first racks... --- utils/ncurses.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/ncurses.cpp b/utils/ncurses.cpp index c15461f..126a31a 100644 --- a/utils/ncurses.cpp +++ b/utils/ncurses.cpp @@ -2,7 +2,7 @@ * Copyright (C) 2005 Eliot * Authors: Olivier Teuliere * - * $Id: ncurses.cpp,v 1.9 2005/03/27 22:21:29 ipkiss Exp $ + * $Id: ncurses.cpp,v 1.10 2005/04/02 18:22:53 ipkiss Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -822,6 +822,8 @@ int main(int argc, char ** argv) textdomain(PACKAGE); #endif + srand(time(NULL)); + Game *game = GameFactory::Instance()->createFromCmdLine(argc, argv); if (game == NULL) return 1; @@ -854,8 +856,6 @@ int main(int argc, char ** argv) init_pair(COLOR_RED, COLOR_BLACK, COLOR_RED); } - srand(time(NULL)); - // Do not echo noecho();