diff options
author | Adrian Kummerlaender | 2016-04-03 12:53:41 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2016-04-03 12:53:41 +0200 |
commit | 0f6f4c9db81ce100baa2502075dc611fa50aa116 (patch) | |
tree | 85933484775102fca53af98fe13902017eaa1e52 /src/line_accumulator.h | |
parent | 182ee7769f167f54b4952177d9226c4941e67275 (diff) | |
download | justify-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.h | 4 |
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> |