Added random seed init.

This commit is contained in:
Camilla Berglund 2013-05-30 20:41:39 +02:00
parent 53b39a61b9
commit f5dc6e4007

View File

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