From 36f0be801c398b2a7e7e3c9e943c8dfa5eb61973 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Mon, 22 Apr 2024 23:33:06 +0100 Subject: [PATCH] [*] ShuffleIterators should use the fast impl of RngArrayU32Range --- Include/Aurora/RNG/IRandomDevice.hpp | 2 +- Include/Aurora/RNG/RNG.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/Aurora/RNG/IRandomDevice.hpp b/Include/Aurora/RNG/IRandomDevice.hpp index 73200c9c..d1b62939 100644 --- a/Include/Aurora/RNG/IRandomDevice.hpp +++ b/Include/Aurora/RNG/IRandomDevice.hpp @@ -149,7 +149,7 @@ namespace Aurora::RNG AU_DEBUG_MEMCRUNCH; auto uCount = std::distance(begin, end); - auto nextIndexArray = this->NextArrayU32Range(uCount, 0, uCount - 1); + auto nextIndexArray = this->NextArrayU32RangeFast(uCount, 0, uCount - 1); for (AU_ITERATE_N(i, AuUInt(uCount))) { diff --git a/Include/Aurora/RNG/RNG.hpp b/Include/Aurora/RNG/RNG.hpp index 06e2259b..91725857 100644 --- a/Include/Aurora/RNG/RNG.hpp +++ b/Include/Aurora/RNG/RNG.hpp @@ -177,7 +177,7 @@ namespace Aurora::RNG AU_DEBUG_MEMCRUNCH; auto uCount = std::distance(begin, end); - auto nextIndexArray = RngArrayU32Range(uCount, 0, uCount - 1); + auto nextIndexArray = RngArrayU32RangeFast(uCount, 0, uCount - 1); for (AU_ITERATE_N(i, AuUInt(uCount))) {