aboutsummaryrefslogtreecommitdiff
path: root/src/line_accumulator.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-04-03 12:53:41 +0200
committerAdrian Kummerlaender2016-04-03 12:53:41 +0200
commit0f6f4c9db81ce100baa2502075dc611fa50aa116 (patch)
tree85933484775102fca53af98fe13902017eaa1e52 /src/line_accumulator.h
parent182ee7769f167f54b4952177d9226c4941e67275 (diff)
downloadjustify-0f6f4c9db81ce100baa2502075dc611fa50aa116.tar
justify-0f6f4c9db81ce100baa2502075dc611fa50aa116.tar.gz
justify-0f6f4c9db81ce100baa2502075dc611fa50aa116.tar.bz2
justify-0f6f4c9db81ce100baa2502075dc611fa50aa116.tar.lz
justify-0f6f4c9db81ce100baa2502075dc611fa50aa116.tar.xz
justify-0f6f4c9db81ce100baa2502075dc611fa50aa116.tar.zst
justify-0f6f4c9db81ce100baa2502075dc611fa50aa116.zip
Implement deterministic justification
i.e. the mersenne twister seed now depends on the data.
Diffstat (limited to 'src/line_accumulator.h')
-rw-r--r--src/line_accumulator.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/line_accumulator.h b/src/line_accumulator.h
index cb07210..2ca271c 100644
--- a/src/line_accumulator.h
+++ b/src/line_accumulator.h
@@ -19,9 +19,7 @@ class LineAccumulator {
private:
const std::uint8_t max_length_;
- std::random_device device_;
- std::mt19937 random_;
- std::uint8_t length_;
+ std::uint8_t length_;
std::vector<
std::pair<std::string, std::uint8_t>