Index: src/IceRNG.h |
diff --git a/src/IceRNG.h b/src/IceRNG.h |
index 5f862a8537274cf9f18714a4f47e9e22ff5ea86a..16e8f71bedcd50ff26114feec028dd4788a2846d 100644 |
--- a/src/IceRNG.h |
+++ b/src/IceRNG.h |
@@ -42,6 +42,7 @@ class RandomNumberGeneratorWrapper { |
operator=(const RandomNumberGeneratorWrapper &) = delete; |
public: |
+ uint64_t operator()(uint64_t Max) { return RNG.next(Max); } |
uint64_t next(uint64_t Max) { return RNG.next(Max); } |
JF
2014/12/17 18:56:18
I'd only have operator() or next(), not both.
Jim Stichnoth
2014/12/18 18:52:03
Done. Leaving operator() for its use in std::rand
|
bool getTrueWithProbability(float Probability); |
RandomNumberGeneratorWrapper(RandomNumberGenerator &RNG) : RNG(RNG) {} |