Randomize RandomNumberGenerator instances' default seed
This commit is contained in:
parent
18177828ad
commit
a871114339
2 changed files with 2 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ public:
|
|||
_FORCE_INLINE_ real_t randfn(real_t p_mean = 0.0, real_t p_deviation = 1.0) { return randbase.randfn(p_mean, p_deviation); }
|
||||
_FORCE_INLINE_ int randi_range(int p_from, int p_to) { return randbase.random(p_from, p_to); }
|
||||
|
||||
RandomNumberGenerator() {}
|
||||
RandomNumberGenerator() { randbase.randomize(); }
|
||||
};
|
||||
|
||||
#endif // RANDOM_NUMBER_GENERATOR_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue