@@ -20,7 +20,7 @@ limitations under the License.
2020#include < thread>
2121#include < algorithm>
2222
23- #include < gtest/ gtest.h>
23+ #include " ../../test/ gtest.h"
2424#include < gflags/gflags.h>
2525#include < photon/common/alog.h>
2626
@@ -58,7 +58,7 @@ int do_issue(void*, OutOfOrderContext* args)
5858 auto tag = args->tag ;
5959 LOG_DEBUG (VALUE (tag));
6060 aop.push_back (args->tag );
61- random_shuffle (aop.begin (), aop.end ());
61+ shuffle (aop.begin (), aop.end ());
6262 return 0 ;
6363}
6464
@@ -121,7 +121,7 @@ int heavy_complete(void*, OutOfOrderContext* args) {
121121int process_thread () {
122122 while (issue_list.size ()) {
123123 thread_yield ();
124- random_shuffle (issue_list.begin (), issue_list.end ());
124+ shuffle (issue_list.begin (), issue_list.end ());
125125 processing_queue.push (issue_list.back ());
126126 issue_list.pop_back ();
127127 }
@@ -207,7 +207,7 @@ inline int error_complete(void*, OutOfOrderContext* args) {
207207inline int error_process () {
208208 while (issue_list.size ()) {
209209 thread_yield_to (nullptr );
210- random_shuffle (issue_list.begin (), issue_list.end ());
210+ shuffle (issue_list.begin (), issue_list.end ());
211211 auto val = issue_list.back ();
212212 if (rand ()%2 )
213213 val = UINT64_MAX ;
0 commit comments