Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ def build_requirements(self):
def requirements(self):
self.requires("secp256k1/0.22.0", transitive_headers=True, transitive_libs=True)
self.requires("boost/1.86.0", transitive_headers=True, transitive_libs=True)
self.requires("fmt/11.0.2", transitive_headers=True, transitive_libs=True)
self.requires("fmt/11.1.3", transitive_headers=True, transitive_libs=True)
self.requires("expected-lite/0.8.0", transitive_headers=True, transitive_libs=True)
self.requires("ctre/3.9.0", transitive_headers=True, transitive_libs=True)

if self.options.log == "binlog":
self.requires("binlog/2020.02.29@kth/stable", transitive_headers=True, transitive_libs=True)
elif self.options.log == "spdlog":
self.requires("spdlog/1.15.0", transitive_headers=True, transitive_libs=True)
self.requires("spdlog/1.15.1", transitive_headers=True, transitive_libs=True)

if self.options.with_png:
self.requires("libpng/1.6.40", transitive_headers=True, transitive_libs=True)
Expand Down
18 changes: 9 additions & 9 deletions include/kth/infrastructure/utility/random.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ KI_API uint64_t pseudo_random_broken_do_not_use(uint64_t begin, uint64_t end);
*/
KI_API void pseudo_random_broken_do_not_use_fill(data_chunk& chunk);

/**
* Convert a time duration to a value in the range [max/ratio, max].
* @param[in] maximum The maximum value to return.
* @param[in] ratio The determinant of the minimum duration as the inverse
* portion of the maximum duration.
* @return The randomized duration.
*/
KI_API asio::duration pseudo_randomize(asio::duration const& maximum,
uint8_t ratio=2);
// /**
// * Convert a time duration to a value in the range [max/ratio, max].
// * @param[in] maximum The maximum value to return.
// * @param[in] ratio The determinant of the minimum duration as the inverse
// * portion of the maximum duration.
// * @return The randomized duration.
// */
// KI_API asio::duration pseudo_randomize(asio::duration const& maximum,
// uint8_t ratio=2);


/**
Expand Down
Loading