From 1ebc27982163293bbf132a5d44ce79a0d6364bf3 Mon Sep 17 00:00:00 2001 From: James Mitchell Date: Wed, 19 Nov 2025 13:01:07 +0000 Subject: [PATCH] Fix Perm16::random --- include/hpcombi/perm16_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hpcombi/perm16_impl.hpp b/include/hpcombi/perm16_impl.hpp index 4d2daed9..267e6b25 100644 --- a/include/hpcombi/perm16_impl.hpp +++ b/include/hpcombi/perm16_impl.hpp @@ -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;