forked from ak-fortuna/fortuna
fortuna: add mtx_random_data
This commit is contained in:
parent
a3f871a644
commit
4c7e95e475
|
@ -55,6 +55,8 @@ Fortuna::~Fortuna() noexcept {
|
|||
|
||||
|
||||
auto Fortuna::random_data(unsigned int n_bytes) -> void {
|
||||
std::lock_guard<std::mutex> lg(mtx_random_data);
|
||||
|
||||
const auto start{std::chrono::system_clock::now()};
|
||||
fmt::print("random_data starting - {}\n", start);
|
||||
auto elapsed{std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||
|
|
Loading…
Reference in New Issue