mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-28 19:58:35 +01:00
Initialize the random numbers generator before setting the first racks...
This commit is contained in:
parent
f38e884d31
commit
4a71c13990
1 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
* Copyright (C) 2005 Eliot
|
||||
* Authors: Olivier Teuliere <ipkiss@via.ecp.fr>
|
||||
*
|
||||
* $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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue