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
+8 -7
View File
@@ -41,18 +41,19 @@ class Math : public Module
{
private:
RandomGenerator *rng;
RandomGenerator rng;
public:
virtual ~Math();
virtual ~Math()
{}
/**
* @copydoc RandomGenerator::randomseed()
**/
inline void randomseed(uint64 seed)
{
rng->randomseed(seed);
rng.randomseed(seed);
}
/**
@@ -60,7 +61,7 @@ public:
**/
inline double random()
{
return rng->random();
return rng.random();
}
/**
@@ -68,7 +69,7 @@ public:
**/
inline double random(double max)
{
return rng->random(max);
return rng.random(max);
}
/**
@@ -76,7 +77,7 @@ public:
**/
inline double random(double min, double max)
{
return rng->random(min, max);
return rng.random(min, max);
}
/**
@@ -84,7 +85,7 @@ public:
**/
inline double randomnormal(double stddev)
{
return rng->randomnormal(stddev);
return rng.randomnormal(stddev);
}
/**