Cleanup: Removed dependency with 'time.h' by using 'getpid()' instead of 'time(NULL)' as seed for the random number generator

This commit is contained in:
2017-10-13 15:48:58 +02:00
parent bd98dc8a4e
commit 8454e7e6eb

View File

@@ -1,13 +1,11 @@
#include "api.h"
#include <time.h>
#include <stdlib.h>
#include "keyHandlers.h"
#include "StarField.h"
#include "Menu.h"
int main(int argc, char* argv[]) {
srand(time(NULL));
srand(getpid());
Init();
LoadImage("gfx.png");