C++ Logo


Advanced search

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

From: René Ferdinand Rivera Morell <grafikrobot_at_[hidden]>
Date: Fri, 19 Nov 2021 11:37:45 -0600
On Fri, Nov 19, 2021 at 11:18 AM Dimitrij Mijoski via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> 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.

Don't know if you've already explained but.. What mechanism would one use
to get the randomness other than std::random_device?

-- René Ferdinand Rivera Morell
-- Don't Assume Anything  -- No Supone Nada
-- Robot Dreams - http://robot-dreams.net

Received on 2021-11-19 11:37:59