mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
Added random seed init.
This commit is contained in:
parent
53b39a61b9
commit
f5dc6e4007
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user