mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-09-25 20:31:41 +00:00
Stop using the deprecated std::random_shuffle, for the benefit of MSVC.
And generalize `hrandom_shuffle` to take an arbitrary `Iter`, so that passing `vec.begin()` will work even with MSVC's debug iterators. (Passing `&vec[0]` or `vec.data()` would work either way, but I'd worry that someone would forget to do that conscientiously every time.)
This commit is contained in: