seeding the random number generator based on the time
git-svn-id: svn://anubis/anaglym/trunk@116 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
e1281bde17
commit
ebb8667962
@ -3,7 +3,7 @@
|
||||
#include "anaglym.h"
|
||||
#include "Engine.h"
|
||||
#include "SDL.h"
|
||||
#include <stdlib.h> /* exit() */
|
||||
#include <stdlib.h> /* exit(), srand() */
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user