summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/CMakeLists.txt2
-rw-r--r--src/util/random.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt
index e1913920..49554be8 100644
--- a/src/util/CMakeLists.txt
+++ b/src/util/CMakeLists.txt
@@ -2,4 +2,4 @@
#
# SPDX-License-Identifier: GPL-3.0-only
-idf_component_register(SRCS INCLUDE_DIRS "include" REQUIRES "database")
+idf_component_register(SRCS INCLUDE_DIRS "include" REQUIRES "memory")
diff --git a/src/util/random.cpp b/src/util/random.cpp
index ae543765..2b2af9c7 100644
--- a/src/util/random.cpp
+++ b/src/util/random.cpp
@@ -29,8 +29,8 @@ auto Random::Next() -> std::uint64_t {
return komirand(&seed1_, &seed2_);
}
-auto Random::RangeInclusive(std::uint64_t lower, std::uint64_t upper)
- -> std::uint64_t {
+auto Random::RangeInclusive(std::uint64_t lower,
+ std::uint64_t upper) -> std::uint64_t {
return (Next() % (upper - lower + 1)) + lower;
}