blob: a047fd0ab24c5a0ea6f7e935cafa2186e7991d01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff --git a/base/inc/Random.h b/base/inc/Random.h
index 6354dee..21660a9 100644
--- a/base/inc/Random.h
+++ b/base/inc/Random.h
@@ -56,8 +56,8 @@ namespace Force {
class RandomURBG32 {
public:
typedef uint32 result_type; //!< Type define required by STL
- uint32 min() const { return 0; } //!< min function required by STL
- uint32 max() const { return MAX_UINT32; } //!< max function required by STL
+ static constexpr uint32 min() { return 0; } //!< min function required by STL
+ static constexpr uint32 max() { return MAX_UINT32; } //!< max function required by STL
uint32 operator () () const { return mpRandomInstance->Random32(min(), max()); }
explicit RandomURBG32(const Random* randomInstance) : mpRandomInstance(randomInstance) { } //!< Constructor with pointer to a Random object provieded.
|