YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
random_device.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <random>
4#include <string>
5
7
8// TODO(myannyax) Refactor this shit
9
11 public:
12 using result_type = std::mt19937_64::result_type;
13
15
16 explicit RandomDevice(const std::string& /*token*/);
17
19
20 [[nodiscard]] double entropy() const noexcept;
21
23
25
27
28 void reset();
29
31
33
34 private:
35 std::mt19937_64 _eng;
36};
37
38} // namespace yaclib::detail::thread
static constexpr result_type max()
static constexpr result_type min()
std::mt19937_64::result_type result_type
Contract< V, E > MakeContract()
Creates related future and promise.
Definition contract.hpp:25