c4script-cli: Initialize PRNG

heavy-resources
Nicolas Hake 2014-04-16 13:28:45 +02:00
parent 78509e0757
commit 8254621b95
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include <C4Reloc.h>
#include <C4Record.h>
#include <C4MapScript.h>
#include <C4Random.h>
#ifdef _DEBUG
C4Set<C4PropList *> C4PropList::PropLists;
@ -109,6 +110,9 @@ int c4s_runscript(const char * filename)
{
InitCoreFunctionMap(&ScriptEngine);
// Seed PRNG
FixedRandom(time(NULL));
C4Group File;
if (!File.Open(GetWorkingDirectory()))
{