A simple solution for randomness copy problem
Ilya Yaroshenko via Digitalmars-d
digitalmars-d at puremagic.com
Wed Nov 30 04:28:28 PST 2016
On Wednesday, 30 November 2016 at 11:29:25 UTC, Joseph Rushton
Wakeling wrote:
> On Tuesday, 29 November 2016 at 08:50:52 UTC, Ilya Yaroshenko
>> if (isSaturatedRandomEngine!G)
>
> Question on your terminology here: while saturated makes sense,
> is it really your intention to restrict things to random
> _engines_ (i.e. pseudo-random algorithms)? Surely it should
> also be possible for this functionality to work with random
> devices?
Of course they can work with random devices. It looks strange to
me to have explicit API difference between engines and devices.
A random devices can be marked as random engines or we can add a
simple generic adaptor (Device->Engine) for them. --Ilya
I will be happy to se your PR for random devices to mir-random.
Thanks,
Ilya
More information about the Digitalmars-d
mailing list