From ebb8667962f84492e82ca5d0e608f42fe0738784 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 20 Oct 2009 18:09:08 +0000 Subject: [PATCH] seeding the random number generator based on the time git-svn-id: svn://anubis/anaglym/trunk@116 99a6e188-d820-4881-8870-2d33a10e2619 --- anaglym.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/anaglym.cc b/anaglym.cc index d1891f4..45b1c4b 100644 --- a/anaglym.cc +++ b/anaglym.cc @@ -3,7 +3,7 @@ #include "anaglym.h" #include "Engine.h" #include "SDL.h" -#include /* exit() */ +#include /* exit(), srand() */ #include #include using namespace std; @@ -69,6 +69,8 @@ int main(int argc, char * argv[]) usage(); } + srand(time(NULL)); + Video video; video.start(width, height, fullscreen, grab_input);