diff options
Diffstat (limited to 'src/interfaces/randomization.hpp')
-rw-r--r-- | src/interfaces/randomization.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interfaces/randomization.hpp b/src/interfaces/randomization.hpp index 9eeec0a..12f6486 100644 --- a/src/interfaces/randomization.hpp +++ b/src/interfaces/randomization.hpp @@ -1,6 +1,5 @@ #pragma once -#include <functional> #include <memory> class ISeedGenerator @@ -11,7 +10,7 @@ public: [[nodiscard]] virtual unsigned int random_seed() const = 0; }; -using ISeedGeneratorFactory = std::function<std::shared_ptr<ISeedGenerator>()>; +using ISeedGeneratorFactory = std::shared_ptr<ISeedGenerator> (*)(); /** * Pseudo-random unsigned integer generator. @@ -32,4 +31,4 @@ public: }; using IRandomNumberGeneratorFactory = - std::function<std::shared_ptr<IRandomNumberGenerator>(const unsigned int &seed)>; + std::shared_ptr<IRandomNumberGenerator> (*)(const unsigned int &seed); |