libstdc++-v3/ChangeLog:
PR libstdc++/125684
* src/c++11/random.cc (bad_seed, which_source): Change void*
parameters to const void *.
#ifdef USE_LCG
// TODO: use this to seed std::mt19937 engine too.
unsigned
- bad_seed(void* p) noexcept
+ bad_seed(const void* p) noexcept
{
// Poor quality seed based on hash of the current time and the address
// of the object being seeded. Better than using the same default seed
inline Which
which_source(random_device::result_type (*func [[maybe_unused]])(void*),
- void* file [[maybe_unused]])
+ const void* file [[maybe_unused]])
{
#ifdef _GLIBCXX_USE_CRT_RAND_S
if (func == &__winxp_rand_s)