aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/rolling_median.cpp
Commit message (Collapse)AuthorAgeFilesLines
* epee: allow copying a rolling_median_t objectmoneromooo-monero2022-04-101-0/+18
|
* Copyright: Update to 2022mj-xmr2022-03-041-1/+1
|
* Fix overflow issue in epee:misc_utils::rolling_median_t and median(), with ↵koe2020-07-231-0/+11
| | | | unit test
* Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
| | | | Update copyright year to 2020
* Replace std::random_shuffle with std::shuffleTom Smeding2019-08-151-1/+1
| | | | | | | | | | | | | According to [1], std::random_shuffle is deprecated in C++14 and removed in C++17. Since std::shuffle is available since C++11 as a replacement and monero already requires C++11, this is a good replacement. A cryptographically secure random number generator is used in all cases to prevent people from perhaps copying an insecure std::shuffle call over to a place where a secure one would be warranted. A form of defense-in-depth. [1]: https://en.cppreference.com/w/cpp/algorithm/random_shuffle
* use crypto::rand instead of libc rand in a few testsmoneromooo-monero2019-05-101-4/+4
| | | | We don't need secure randomness here, but it should shut coverity up
* blockchain: keep a rolling long term block weight medianmoneromooo-monero2019-05-021-0/+202