Skip to content

Commit

Permalink
Close #398.
Browse files Browse the repository at this point in the history
Remove unused random variable.
  • Loading branch information
hyoklee committed Apr 16, 2022
1 parent 099f86a commit 7208dff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/data_placement_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ Status RoundRobinPlacement(const std::vector<size_t> &blob_sizes,
std::vector<u64> ns_local(node_state.begin(), node_state.end());

for (size_t i {0}; i < blob_sizes.size(); ++i) {
std::random_device dev;
std::mt19937 rng(dev());
PlacementSchema schema;

if (split) {
Expand Down Expand Up @@ -218,8 +216,6 @@ Status RandomPlacement(const std::vector<size_t> &blob_sizes,

for (size_t i {0}; i < blob_sizes.size(); ++i) {
PlacementSchema schema;
std::random_device dev;
std::mt19937 rng(dev());

// Split the blob
if (SplitBlob(blob_sizes[i])) {
Expand Down

0 comments on commit 7208dff

Please sign in to comment.