mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Merge branch 'master' of https://github.com/sogou/workflow into nossl
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user