Misc. code cosmetics and improvements

This commit is contained in:
Alex Szpakowski
2013-04-18 02:14:35 -03:00
parent 6fd3038405
commit bf6d1c258b
7 changed files with 27 additions and 29 deletions
+1 -7
View File
@@ -82,18 +82,12 @@ namespace math
Math Math::instance;
Math::Math()
: rng(newRandomGenerator())
: rng()
{
// prevent the runtime from free()-ing this
retain();
}
Math::~Math()
{
if (rng)
rng->release();
}
RandomGenerator *Math::newRandomGenerator()
{
return new RandomGenerator();