Commit 2f8b5731 authored by Pierre-Emmanuel Viel's avatar Pierre-Emmanuel Viel

Fix local variable shadowing

parent 00367cfb
...@@ -118,8 +118,8 @@ public: ...@@ -118,8 +118,8 @@ public:
if( (indices.size() == feature_size_ * CHAR_BIT) || (indices.size() < key_size_) ) if( (indices.size() == feature_size_ * CHAR_BIT) || (indices.size() < key_size_) )
{ {
indices.resize( feature_size_ * CHAR_BIT ); indices.resize( feature_size_ * CHAR_BIT );
for (size_t i = 0; i < feature_size_ * CHAR_BIT; ++i) for (size_t j = 0; j < feature_size_ * CHAR_BIT; ++j)
indices[i] = i; indices[j] = j;
std::random_shuffle(indices.begin(), indices.end()); std::random_shuffle(indices.begin(), indices.end());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment