mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-03-31 17:25:51 +02:00
Added random seed initialisation for proper random game selection.
This commit is contained in:
@@ -24,12 +24,16 @@
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
#include <dirent.h>
|
||||
#include <time.h>
|
||||
|
||||
static bool ImportConfiguration(Configuration *c);
|
||||
static bool StartLogging();
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
// Initialize random seed
|
||||
srand( time( NULL ) );
|
||||
|
||||
Configuration::initialize();
|
||||
|
||||
Configuration config;
|
||||
|
||||
Reference in New Issue
Block a user