Skip to content

Commit

Permalink
Fix comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ple13 committed Jan 12, 2024
1 parent 5fde81b commit c735db7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/cc/any_sketch/crypto/shuffle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ absl::Status SecureShuffleWithSeed(std::vector<uint32_t>& data,
math::CreatePrngFromSeed(seed));

// The custom implementation of Fisher-Yates shuffle is as below. It is not
// recommended to use std::shuffle(data.begin(), data.end(), *prng.get()) to
// do the shuffle because the implementation of std::shuffle is not dictated
// by the standard, so even if an exactly same prng is used, different results
// with different standard library implementations can happen.
// recommended to use std::shuffle because the implementation of std::shuffle
// is not dictated by the standard, even if an exactly same
// UniformRandomBitGenertor is used, different results with different standard
// library implementations could happen.

// Samples all the random values that will be used to compute all the swapping
// indices.
Expand Down

0 comments on commit c735db7

Please sign in to comment.