From f5dc6e40070ce6481c20f592d90aeedfb26a17d9 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 30 May 2013 20:41:39 +0200 Subject: [PATCH] Added random seed init. --- tests/reopen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/reopen.c b/tests/reopen.c index ea0542f3..acac0a44 100644 --- a/tests/reopen.c +++ b/tests/reopen.c @@ -35,6 +35,7 @@ #include +#include #include #include @@ -112,6 +113,8 @@ int main(int argc, char** argv) int count = 0; GLFWwindow* window; + srand(time(NULL)); + glfwSetErrorCallback(error_callback); if (!glfwInit())