Commit 979ab760 authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Fix for #113

parent 463d04e2
This diff is collapsed.
......@@ -42,6 +42,7 @@
#include <random>
#include <utility>
#include <mutex>
#include <limbo/tools/rand_utils.hpp>
namespace limbo {
namespace tools {
......@@ -55,7 +56,7 @@ namespace limbo {
class RandomGenerator {
public:
using result_type = typename D::result_type;
RandomGenerator(result_type min, result_type max) : _dist(min, max), _rgen(std::random_device()()) {}
RandomGenerator(result_type min, result_type max) : _dist(min, max), _rgen(randutils::auto_seed_128{}.base()) {}
result_type rand()
{
std::lock_guard<std::mutex> lock(_mutex);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment