Of the use of unpredictableSeed

Nick Sabalausky (Abscissa) via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 7 12:05:44 PST 2017


On 03/07/2017 09:46 AM, Kagamin wrote:
> On Tuesday, 7 March 2017 at 10:18:52 UTC, Seb wrote:
>> http://man7.org/linux/man-pages/man2/getrandom.2.html
>
>> Unnecessarily reading large quantities of data will have a negative
>> impact on other users of the /dev/random and /dev/urandom devices.
>> Therefore, getrandom() should not be used for Monte Carlo simulations
>> or other programs/algorithms which are doing probabilistic sampling.
>
> In other words it shouldn't be used when not strictly necessary.

Yes, although that's true of reading /dev/(u)random too. (Just to be clear.)


More information about the Digitalmars-d mailing list