aboutsummaryrefslogtreecommitdiff
path: root/src/line_accumulator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/line_accumulator.h')
-rw-r--r--src/line_accumulator.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/line_accumulator.h b/src/line_accumulator.h
index b3e78de..93ebfc0 100644
--- a/src/line_accumulator.h
+++ b/src/line_accumulator.h
@@ -3,21 +3,20 @@
#include <tuple>
#include <string>
#include <vector>
-
-#include "random.h"
+#include <random>
class LineAccumulator {
public:
- LineAccumulator(const std::size_t max_length);
+ LineAccumulator(const std::uint8_t max_length);
~LineAccumulator();
void operator()(const std::string& word);
private:
- const std::size_t max_length_;
+ const std::uint8_t max_length_;
- utility::Random random_;
- std::size_t length_;
+ std::random_device device_;
+ std::uint8_t length_;
std::vector<
std::pair<std::string, std::uint8_t>