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:
4
main.cpp
4
main.cpp
@@ -1,13 +1,11 @@
|
|||||||
#include "api.h"
|
#include "api.h"
|
||||||
#include <time.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#include "keyHandlers.h"
|
#include "keyHandlers.h"
|
||||||
#include "StarField.h"
|
#include "StarField.h"
|
||||||
#include "Menu.h"
|
#include "Menu.h"
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
srand(time(NULL));
|
srand(getpid());
|
||||||
Init();
|
Init();
|
||||||
LoadImage("gfx.png");
|
LoadImage("gfx.png");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user