diff --git a/test/runner.c b/test/runner.c
index 7d4d858..9a5fd81 100644
--- a/test/runner.c
+++ b/test/runner.c
@@ -25,6 +25,8 @@ main(int argc, const char * argv[]) {
fprintf(stderr, CYAN "\nWelcome to cglm tests\n\n" RESET);
+ srand((unsigned int)time(NULL));
+
for (i = 0; i < count; i++) {
int32_t len;
diff --git a/test/src/test_common.c b/test/src/test_common.c
index ce1acc8..2f177fd 100644
--- a/test/src/test_common.c
+++ b/test/src/test_common.c
@@ -9,8 +9,6 @@
void
test_rand_mat4(mat4 dest) {
glm_mat4_copy(GLM_MAT4_IDENTITY, dest);
-
- srand((unsigned int)time(NULL));
/* random position */
dest[3][0] = drand48();
@@ -28,8 +26,6 @@ void
test_rand_mat3(mat3 dest) {
mat4 m4;
- srand((unsigned int)time(NULL));
-
/* random rotatation around random axis with random angle */
glm_rotate_make(m4, drand48(), (vec3){drand48(), drand48(), drand48()});
glm_mat4_pick3(m4, dest);
@@ -37,8 +33,6 @@ test_rand_mat3(mat3 dest) {
void
test_rand_vec3(vec3 dest) {
- srand((unsigned int)time(NULL));
-
dest[0] = drand48();
dest[1] = drand48();
dest[2] = drand48();
@@ -53,8 +47,6 @@ test_rand_vec3s() {
void
test_rand_vec4(vec4 dest) {
- srand((unsigned int)time(NULL));
-
dest[0] = drand48();
dest[1] = drand48();
dest[2] = drand48();
@@ -70,14 +62,11 @@ test_rand_vec4s() {
float
test_rand(void) {
- srand((unsigned int)time(NULL));
return drand48();
}
void
test_rand_quat(versor q) {
- srand((unsigned int)time(NULL));
-
glm_quat(q, drand48(), drand48(), drand48(), drand48());
glm_quat_normalize(q);
}
diff --git a/win/cglm-test.vcxproj b/win/cglm-test.vcxproj
index d6927da..19dc3d9 100644
--- a/win/cglm-test.vcxproj
+++ b/win/cglm-test.vcxproj
@@ -30,6 +30,7 @@
+
diff --git a/win/cglm-test.vcxproj.filters b/win/cglm-test.vcxproj.filters
index f5ec13b..8797a05 100644
--- a/win/cglm-test.vcxproj.filters
+++ b/win/cglm-test.vcxproj.filters
@@ -50,6 +50,9 @@
src
+
+ src
+