std:random_shuffle is depricated in C++17
And this fails on FreeBSD/Clang/stdlibc++
/home/jenkins/workspace/ceph-master/src/tools/osdmaptool.cc:437:5: error: use of undeclared identifier 'random_shuffle'
random_shuffle (rules.begin(), rules.end());
1 error generated.
gmake2: * [src/tools/CMakeFiles/osdmaptool.dir/build.make:63: src/tools/CMakeFiles/osdmaptool.dir/osdmaptool.cc.o] Error 1
gmake2: Leaving directory '/home/jenkins/workspace/ceph-master/build'
gmake1: * [CMakeFiles/Makefile2:5960: src/tools/CMakeFiles/osdmaptool.dir/all] Error 2
#3 Updated by Nathan Cutler about 1 year ago
Note: backporting being handled via #42718 because this is a follow-on fix for https://github.com/ceph/ceph/pull/31774/commits/b946308f03f1798915fafe7878f34b4a234c2ae4 which was part of that fix.