1 2 3 4 5 6 7 8 9 10 11 12
#include "seed_generator.hpp" SeedGenerator::SeedGenerator( const std::shared_ptr<std::random_device> &random_device) noexcept : _random_device(random_device) { } auto SeedGenerator::random_seed() const noexcept -> uint32_t { return (*_random_device)(); }