|
Monero
|
Generate poisson distributed values in discrete D time units. More...
#include <duration.h>
Public Types | |
| using | result_type = D |
| std::chrono::duration time unit precision | |
| using | rep = typename result_type::rep |
| Type used to represent duration value. | |
Public Member Functions | |
| random_poisson_duration (result_type average) | |
| result_type | operator() () |
| Generate a crypto-secure random duration. | |
Private Attributes | |
| std::poisson_distribution< rep > | dist |
Generate poisson distributed values in discrete D time units.
| using crypto::random_poisson_duration< D >::rep = typename result_type::rep |
Type used to represent duration value.
| using crypto::random_poisson_duration< D >::result_type = D |
std::chrono::duration time unit precision
|
inlineexplicit |
| average | for generated durations |
|
inline |
Generate a crypto-secure random duration.
|
private |