#include <random_new_synced.hpp>

Public Member Functions | |
| synced_rng (std::function< std::string()> seed_generator) | |
| virtual | ~synced_rng () |
Public Member Functions inherited from random_new::rng | |
| rng () | |
| uint32_t | next_random () |
| Provides the next random draw. More... | |
| virtual | ~rng () |
| unsigned int | get_random_calls () |
| Provides the number of random calls to the rng in this context. More... | |
| int | get_random_int (int min, int max) |
This helper method provides a random int from the underlying generator, using results of next_random in a manner guaranteed to be cross platform. More... | |
Protected Member Functions | |
| virtual uint32_t | next_random_impl () |
Private Member Functions | |
| void | initialize () |
Private Attributes | |
| bool | has_valid_seed_ |
| std::function< std::string()> | seed_generator_ |
| rand_rng::mt_rng | gen_ |
Additional Inherited Members | |
Static Public Member Functions inherited from random_new::rng | |
| static rng & | default_instance () |
Protected Attributes inherited from random_new::rng | |
| unsigned int | random_calls_ |
Definition at line 28 of file random_new_synced.hpp.
| random_new::synced_rng::synced_rng | ( | std::function< std::string()> | seed_generator | ) |
Definition at line 25 of file random_new_synced.cpp.
|
virtual |
Definition at line 49 of file random_new_synced.cpp.
|
private |
Definition at line 42 of file random_new_synced.cpp.
References gen_, has_valid_seed_, seed_generator_, and rand_rng::mt_rng::seed_random().
Referenced by next_random_impl().
|
protectedvirtual |
Implements random_new::rng.
Definition at line 29 of file random_new_synced.cpp.
References gen_, rand_rng::mt_rng::get_next_random(), has_valid_seed_, initialize(), and LOG_RND.
|
private |
Definition at line 40 of file random_new_synced.hpp.
Referenced by initialize(), and next_random_impl().
|
private |
Definition at line 38 of file random_new_synced.hpp.
Referenced by initialize(), and next_random_impl().
|
private |
Definition at line 39 of file random_new_synced.hpp.
Referenced by initialize().
1.8.8