aboutsummaryrefslogtreecommitdiff
path: root/src/randomization/seed_generator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/randomization/seed_generator.hpp')
-rw-r--r--src/randomization/seed_generator.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/randomization/seed_generator.hpp b/src/randomization/seed_generator.hpp
index 2439949..71fd089 100644
--- a/src/randomization/seed_generator.hpp
+++ b/src/randomization/seed_generator.hpp
@@ -1,18 +1,18 @@
#pragma once
+#include "DI/auto_wirable.hpp"
#include "interfaces/randomization.hpp"
-#include <memory>
#include <random>
-class SeedGenerator : public ISeedGenerator
+class SeedGenerator : public ISeedGenerator,
+ public AutoWirable<ISeedGenerator, SeedGenerator>
{
public:
- explicit SeedGenerator(
- const std::shared_ptr<std::random_device> &random_device) noexcept;
+ SeedGenerator() noexcept = default;
- [[nodiscard]] auto random_seed() const noexcept -> uint32_t override;
+ [[nodiscard]] auto random_seed() noexcept -> uint32_t override;
private:
- const std::shared_ptr<std::random_device> &_random_device;
+ std::random_device _random_device;
};