Skip to content

Commit

Permalink
[FIX] Fixed typo in vpUniRand::shuffleVector
Browse files Browse the repository at this point in the history
  • Loading branch information
LAGNEAU Romain committed Sep 11, 2024
1 parent eb76327 commit 3c9ae25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/core/include/visp3/core/vpUniRand.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ class VISP_EXPORT vpUniRand
std::srand(seed);
}
else {
std::srand(std::time(0))
}
std::srand(std::time(0));
}
std::random_shuffle(shuffled.begin(), shuffled.end());
#else
if (seed < 0) {
Expand All @@ -165,7 +165,7 @@ class VISP_EXPORT vpUniRand
}
#endif
return shuffled;
}
}

private:
struct vpPcgStateSetSeq64t
Expand Down

0 comments on commit 3c9ae25

Please sign in to comment.