Skip to content

Commit b838211

Browse files
committed
Expose random engine and change to 64 bits
1 parent dfddcdf commit b838211

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

include/tcframe/spec/random/Random.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include <random>
55

66
using std::mt19937;
7+
using std::mt19937_64;
8+
using std::random_shuffle;
79
using std::uniform_real_distribution;
810
using std::uniform_int_distribution;
911

@@ -47,8 +49,12 @@ class Random {
4749
std::shuffle(first, last, engine);
4850
}
4951

52+
mt19937_64 *getEngine() {
53+
return &engine;
54+
}
55+
5056
private:
51-
mt19937 engine;
57+
mt19937_64 engine;
5258
};
5359

5460
}

0 commit comments

Comments
 (0)