Added random seed init.
diff --git a/tests/reopen.c b/tests/reopen.c
index ea0542f..acac0a4 100644
--- a/tests/reopen.c
+++ b/tests/reopen.c
@@ -35,6 +35,7 @@
 
 #include <GLFW/glfw3.h>
 
+#include <time.h>
 #include <stdio.h>
 #include <stdlib.h>
 
@@ -112,6 +113,8 @@
     int count = 0;
     GLFWwindow* window;
 
+    srand(time(NULL));
+
     glfwSetErrorCallback(error_callback);
 
     if (!glfwInit())