diff options
Diffstat (limited to 'test/utils.cpp')
| -rw-r--r-- | test/utils.cpp | 19 |
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 |
