https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88935
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement CC| |xry111 at gcc dot gnu.org --- Comment #7 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- The C++11 standard explicitly allows to use rand() as the random source for random_shuffle, thus this is not a bug but an enhancement. As random_shuffle is deprecated since C++14 and removed in C++17 (the interface is just broken beyond any repair), I think we should just emit a deprecation warning telling to use shuffle (it needs an uniform random bit generator to be passed) instead.