Merge branch 'master' of https://github.com/sogou/workflow into nossl

This commit is contained in:
Xie Han
2024-11-28 16:26:01 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -433,7 +433,7 @@ protected:
virtual void execute()
{
std::shuffle(this->input.first, this->input.last,
std::mt19937_64(random()));
std::mt19937_64(rand()));
this->output.first = this->input.first;
this->output.last = this->input.last;
}

View File

@@ -30,7 +30,7 @@ class EndpointGroup
public:
EndpointGroup(int group_id, UPSGroupPolicy *policy) :
mutex(PTHREAD_MUTEX_INITIALIZER),
gen(random())
gen(rand())
{
this->id = group_id;
this->policy = policy;