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 Mar 16, 2024
1 parent 79447ed commit 9cfb49b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/tcframe/spec/random/Random.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <algorithm>
#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 @@ -48,8 +48,12 @@ class Random {
random_shuffle(first, last, [this](unsigned int idx) { return nextInt(idx); });
}

mt19937_64 *getEngine() {
return &engine;
}

private:
mt19937 engine;
mt19937_64 engine;
};

}

0 comments on commit 9cfb49b

Please sign in to comment.