random() -> rand(). (#1663)

This commit is contained in:
xiehan
2024-11-28 16:24:08 +08:00
committed by GitHub
parent 05168d9eab
commit a8ce324b71
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;