Skip to content

Commit

Permalink
random() -> rand(). (#1663)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim authored Nov 28, 2024
1 parent 05168d9 commit a8ce324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/factory/WFAlgoTaskFactory.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/nameservice/UpstreamPolicies.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a8ce324

Please sign in to comment.