From 7df14e51ddedb042a6826e4355c18bfbef5aca3a Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Thu, 22 Sep 2011 20:25:50 +0100 Subject: [PATCH] Updated linearRand test --- test/gtc/gtc_random.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/gtc/gtc_random.cpp b/test/gtc/gtc_random.cpp index bf4a5e94..bb8cf573 100644 --- a/test/gtc/gtc_random.cpp +++ b/test/gtc/gtc_random.cpp @@ -8,7 +8,7 @@ /////////////////////////////////////////////////////////////////////////////////////////////////// #include -#include +#include #include #include @@ -21,8 +21,8 @@ int test_signedRand1() double ResultDouble = 0.0f; for(std::size_t i = 0; i < 100000; ++i) { - ResultFloat += glm::signedRand1(/*-1.0f, 1.0f*/); - ResultDouble += glm::signedRand1(/*-1.0, 1.0*/); + ResultFloat += glm::linearRand(-1.0f, 1.0f); + ResultDouble += glm::linearRand(-1.0, 1.0); } Error += glm::equalEpsilon(ResultFloat, 0.0f, 0.0001f);