refactored random subsystem
added compile-time seed support
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#include "../../math/DrawList.h"
|
||||
#include "../../math/Distributions.h"
|
||||
#include "../../math/DrawList.h"
|
||||
|
||||
#include "../../nav/dijkstra/Dijkstra.h"
|
||||
|
||||
@@ -34,7 +35,7 @@ private:
|
||||
DrawList<T&> drawer;
|
||||
|
||||
/** fast random-number-generator */
|
||||
std::minstd_rand gen;
|
||||
RandomGenerator gen;
|
||||
|
||||
/** 0-mean normal distribution */
|
||||
std::normal_distribution<float> headingChangeDist = std::normal_distribution<float>(0.0, HEADING_CHANGE_SIGMA);
|
||||
|
||||
Reference in New Issue
Block a user