Skip to content

Commit

Permalink
Merge pull request #48 from tand00/main
Browse files Browse the repository at this point in the history
Fallback to CPP standard RNG
  • Loading branch information
srba authored Sep 17, 2024
2 parents 6ed88bc + ca46b58 commit 19ea514
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/DiscreteVerification/Generators/SMCRunGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#ifndef SMCRUNGENERATOR_H
#define SMCRUNGENERATOR_H

#include <boost/random/mersenne_twister.hpp>

#include "DiscreteVerification/Generators/Generator.h"
#include "DiscreteVerification/Util/IntervalOps.hpp"
#include "Core/Query/SMCQuery.hpp"
Expand All @@ -29,8 +27,8 @@ namespace VerifyTAPN {
, _transitionsStatistics(tapn.getTransitions().size(), 0)
, _numericPrecision(numericPrecision)
{
/*std::random_device rd;
_rng = std::ranlux48(rd());*/
std::random_device rd;
_rng = std::ranlux48(rd());
};

~SMCRunGenerator() {
Expand Down Expand Up @@ -95,7 +93,7 @@ namespace VerifyTAPN {

unsigned int _numericPrecision = 0;

boost::random::mt19937_64 _rng;
std::ranlux48 _rng;

std::vector<RealMarking*> _trace;

Expand Down

0 comments on commit 19ea514

Please sign in to comment.