mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 15:23:17 +01:00
Added random seed init.
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user