Added random seed init.

This commit is contained in:
Camilla Berglund 2013-05-30 20:41:39 +02:00
parent 53b39a61b9
commit f5dc6e4007
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,7 @@
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>
#include <time.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -112,6 +113,8 @@ int main(int argc, char** argv)
int count = 0; int count = 0;
GLFWwindow* window; GLFWwindow* window;
srand(time(NULL));
glfwSetErrorCallback(error_callback); glfwSetErrorCallback(error_callback);
if (!glfwInit()) if (!glfwInit())