Rename global rng() to sharedRng()

This commit is contained in:
Martin Hořeňovský committed 2022-05-17 15:43:23 +02:00
1 parent 9c72b303d9
commit 359cd6187d
4 files changed
+5 -5

No files matched your search

@@ -25,7 +25,7 @@ class RandomFloatingGenerator final : public IGenerator<Float> {
public:
RandomFloatingGenerator(Float a, Float b):
m_rng(rng()),
m_rng(sharedRng()),
m_dist(a, b) {
static_cast<void>(next());
}
@@ -47,7 +47,7 @@ class RandomIntegerGenerator final : public IGenerator<Integer> {
public:
RandomIntegerGenerator(Integer a, Integer b):
m_rng(rng()),
m_rng(sharedRng()),
m_dist(a, b) {
static_cast<void>(next());
}