diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-30 18:45:22 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-30 18:45:22 +0000 |
commit | 17c7c9caed3486797ce40ce56d0c383ebaf77ea6 (patch) | |
tree | b911555f20143de93c6a808bce16a6322d85adae /contrib | |
parent | Merge pull request #629 (diff) | |
download | monero-17c7c9caed3486797ce40ce56d0c383ebaf77ea6.tar.xz |
epee: remove dodgy random code that nobody uses
in case someone might want to use it
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/math_helper.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/contrib/epee/include/math_helper.h b/contrib/epee/include/math_helper.h index 9b8765e60..90398acbb 100644 --- a/contrib/epee/include/math_helper.h +++ b/contrib/epee/include/math_helper.h @@ -229,15 +229,6 @@ namespace math_helper } } -PRAGMA_WARNING_PUSH -PRAGMA_GCC("GCC diagnostic ignored \"-Wstrict-aliasing\"") - inline - uint64_t generated_random_uint64() - { - boost::uuids::uuid id___ = boost::uuids::random_generator()(); - return *reinterpret_cast<uint64_t*>(&id___.data[0]); //(*reinterpret_cast<uint64_t*>(&id___.data[0]) ^ *reinterpret_cast<uint64_t*>(&id___.data[8])); - } -PRAGMA_WARNING_POP template<int default_interval, bool start_immediate = true> class once_a_time_seconds { |