Error in random_generator removed.
This commit is contained in:
parent
f7c157c154
commit
f1ec21e724
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ template <class T = uint32> class random_generator
|
||||||
public :
|
public :
|
||||||
random_generator(T _max, eoRng& _rng = rng) : maxim(_max), random(_rng) {}
|
random_generator(T _max, eoRng& _rng = rng) : maxim(_max), random(_rng) {}
|
||||||
|
|
||||||
T operator()(void) { return (T) random.random(max); }
|
T operator()(void) { return (T) random.random(maxim); }
|
||||||
|
|
||||||
private :
|
private :
|
||||||
T maxim;
|
T maxim;
|
||||||
|
|
|
||||||
Reference in a new issue