Boost logo

Boost :

Subject: Re: [boost] [config] std::shuffle support
From: Peter Dimov (lists_at_[hidden])
Date: 2016-11-07 07:28:37

Andrey Semashev wrote:

> FWIW, in Boost.Log I'm using my local random_shuffle[1] regardless of the
> standard library version. Maybe that would be a better solution than
> conditioning your code on config macros.
> [1]:

The standard random_shuffle doesn't use rng() % n though, it uses rng(n).
rng() % n is non-uniform in general.

Boost list run by bdawes at, gregod at, cpdaniel at, john at