diff options
Diffstat (limited to 'runtime/utils.h')
| -rw-r--r-- | runtime/utils.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/runtime/utils.h b/runtime/utils.h index b2746ee1eb..c1e88a4feb 100644 --- a/runtime/utils.h +++ b/runtime/utils.h @@ -382,19 +382,13 @@ using RNG = std::random_device; #endif template <typename T> -static T GetRandomNumber(T min, T max) { +T GetRandomNumber(T min, T max) { CHECK_LT(min, max); std::uniform_int_distribution<T> dist(min, max); RNG rng; return dist(rng); } -// All of the elements from one container to another. -template <typename Dest, typename Src> -static void AddAll(Dest& dest, const Src& src) { - dest.insert(src.begin(), src.end()); -} - // Return the file size in bytes or -1 if the file does not exists. int64_t GetFileSizeBytes(const std::string& filename); |