diff --git a/gtsam/base/utilities.h b/gtsam/base/utilities.h index a67c5d1b6..d2039cdea 100644 --- a/gtsam/base/utilities.h +++ b/gtsam/base/utilities.h @@ -1,11 +1,18 @@ #pragma once -#include -#include -#include - #include +#include +#include +#include +#include + +/** + * @brief Global default pseudo-random number generator object. + * In wrappers we can access std::mt19937_64 via gtsam.MT19937 + */ +static std::mt19937_64 kRandomNumberGenerator(42); + namespace gtsam { /** * For Python __str__(). @@ -28,7 +35,7 @@ private: std::streambuf* coutBuffer_; }; -} +} // namespace gtsam namespace gtsam { // Adapted from https://stackoverflow.com/a/32223343/9151520