From db2f18ae11b1aa2cde9b03619f1efcfb8dc58496 Mon Sep 17 00:00:00 2001 From: chenzizhan Date: Fri, 9 Jun 2023 17:47:03 +0800 Subject: fix warnings. add const and static key words. metric->serializer to serializer->metric_info->metric --- test/utils.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/utils.cpp (limited to 'test/utils.cpp') diff --git a/test/utils.cpp b/test/utils.cpp new file mode 100644 index 0000000..d2ccc69 --- /dev/null +++ b/test/utils.cpp @@ -0,0 +1,19 @@ + + +#include +#include + + +#include "utils.hpp" + +using namespace std; + +string gen_rand_string(int len) +{ + string s; + for (int i = 0; i < len; i++) + { + s += 'a' + rand() % 26; + } + return s; +} \ No newline at end of file -- cgit v1.2.3