summaryrefslogtreecommitdiff
path: root/test/utils.cpp
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-06-09 17:47:03 +0800
committerchenzizhan <[email protected]>2023-06-09 17:47:03 +0800
commitdb2f18ae11b1aa2cde9b03619f1efcfb8dc58496 (patch)
treed08e7a2f8eca649f02c46c5ba7cc380cf5b7dca6 /test/utils.cpp
parent987285d3a900d36834e87401216801d3ac5cc316 (diff)
fix warnings. add const and static key words. metric->serializer to serializer->metric_info->metric
Diffstat (limited to 'test/utils.cpp')
-rw-r--r--test/utils.cpp19
1 files changed, 19 insertions, 0 deletions
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 <string>
+#include <stdlib.h>
+
+
+#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