Skip to content

Commit 27775c3

Browse files
Fix Perm16::random
1 parent 89bf118 commit 27775c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/hpcombi/perm16_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ inline Perm16 Perm16::random(uint64_t n) {
162162
static std::mt19937 g(rd());
163163

164164
Perm16 res = one();
165-
auto ar = res.as_array();
165+
auto &ar = res.as_array();
166166

167167
std::shuffle(ar.begin(), ar.begin() + n, g);
168168
return res;

0 commit comments

Comments
 (0)