Skip to content

Commit

Permalink
Expose random engine and change to 64 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
hockyy committed Oct 29, 2024
1 parent dfddcdf commit b838211
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/tcframe/spec/random/Random.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include <random>

using std::mt19937;
using std::mt19937_64;
using std::random_shuffle;
using std::uniform_real_distribution;
using std::uniform_int_distribution;

Expand Down Expand Up @@ -47,8 +49,12 @@ class Random {
std::shuffle(first, last, engine);
}

mt19937_64 *getEngine() {
return &engine;
}

private:
mt19937 engine;
mt19937_64 engine;
};

}

0 comments on commit b838211

Please sign in to comment.