| 28 | using namespace sonic_json::internal::avx2; |
| 29 | |
| 30 | static std::string random_string(int str_len) { |
| 31 | // const char * strs = |
| 32 | // "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()这是一个字符串"; |
| 33 | std::string re; |
| 34 | |
| 35 | std::random_device rd; |
| 36 | std::mt19937 gen(rd()); |
| 37 | for (int i = 0; i < str_len; ++i) { |
| 38 | char c = gen() % 26 + 'a'; |
| 39 | re.append(1, c); |
| 40 | } |
| 41 | return re; |
| 42 | } |
| 43 | |
| 44 | bool is_correct(int a, int b) { |
| 45 | if (a < 0) return b < 0; |