Add doc for Random and TerminationHandler (#1206)

Fixes #1010
This commit is contained in:
Sergey Kuznetsov
2024-02-26 23:07:05 +00:00
committed by GitHub
parent 0f5da4414c
commit c94f55b7eb
2 changed files with 14 additions and 0 deletions

View File

@@ -24,8 +24,19 @@
namespace util {
/**
* @brief Random number generator
*/
class Random {
public:
/**
* @brief Generate a random number between min and max
*
* @tparam T Type of the number to generate
* @param min Minimum value
* @param max Maximum value
* @return Random number between min and max
*/
template <typename T>
static T
uniform(T min, T max)

View File

@@ -21,6 +21,9 @@
namespace util {
/**
* @brief Set a termination handler that logs a backtrace on termination
*/
void
setTerminationHandler();