1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

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 <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())