C++ Logo

std-proposals

Advanced search

Re: Comments for P0205 and P2060: Mersenne twister can actually generate 7 and 13

From: Dimitrij Mijoski <dmjpp_at_[hidden]>
Date: Fri, 19 Nov 2021 18:18:11 +0100
On Fri, 2021-11-19 at 12:05 -0500, Jason McKesson via Std-Proposals
wrote:
> It should be easy to shove as much randomness at an RNG as possible.
> If a particular user wants to seed it with only 32-bits of
> randomness,
> they can. If a particular user wants to seed it with only 128 bits of
> randomness, they can. But it should not be needlessly difficult to
> seed an RNG with *all* of the randomness it can take.

Maybe. But it should not be easy to do that with std::random_device
because as I said, overusing it is wrong. It is a depleatable resource.

Received on 2021-11-19 11:18:17