diff options
author | Adrian Kummerlaender | 2016-04-01 21:31:28 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2016-04-01 21:31:28 +0200 |
commit | ae7ea39966236965500faa96c42986bf35cc9af3 (patch) | |
tree | 0d81cbcc1062ef7ade18f3979aca0db82c407242 /src/random.cc | |
parent | 1d6e1df13b1b27bcf7144e03137b9a4f6acbcdcd (diff) | |
download | justify-ae7ea39966236965500faa96c42986bf35cc9af3.tar justify-ae7ea39966236965500faa96c42986bf35cc9af3.tar.gz justify-ae7ea39966236965500faa96c42986bf35cc9af3.tar.bz2 justify-ae7ea39966236965500faa96c42986bf35cc9af3.tar.lz justify-ae7ea39966236965500faa96c42986bf35cc9af3.tar.xz justify-ae7ea39966236965500faa96c42986bf35cc9af3.tar.zst justify-ae7ea39966236965500faa96c42986bf35cc9af3.zip |
Improve distribution of remaining spaces after base addition
Removed random utility class as it was over-designed.
Diffstat (limited to 'src/random.cc')
-rw-r--r-- | src/random.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/random.cc b/src/random.cc deleted file mode 100644 index dba3647..0000000 --- a/src/random.cc +++ /dev/null @@ -1,29 +0,0 @@ -#include "random.h" - -namespace utility { - -std::size_t Random::Range::get() { - return this->distribution_(*(this->generator_)); -} - -Random::Range::Range( - std::mt19937* const generator, - const std::size_t a, - const std::size_t b -): - generator_(generator), - distribution_(a, b) { } - -Random::Random(): - device_{}, - generator_{device_()} { } - -Random::Range Random::makeRange( - const std::size_t a, - const std::size_t b) { - this->generator_.seed(this->device_()); - - return Range{&(this->generator_), a, b}; -} - -} |