Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/hpcombi/perm16_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ inline Perm16 Perm16::random(uint64_t n) {
static std::mt19937 g(rd());

Perm16 res = one();
auto ar = res.as_array();
auto &ar = res.as_array();

std::shuffle(ar.begin(), ar.begin() + n, g);
return res;
Expand Down