A strongly pure PRNG

Kagamin spam at here.lot
Sat Jan 11 02:18:58 PST 2014


On Tuesday, 7 January 2014 at 12:37:39 UTC, qznc wrote:
> On Tuesday, 7 January 2014 at 12:32:23 UTC, Kagamin wrote:
>> I believe, bearophile was interested in this - a strongly pure 
>> immutable Xorshift32(1) PRNG: http://dpaste.dzfl.pl/5f710daf
>
> I would consider this weakly pure, because the implicit 
> parameter "this" is not immutable. A strongly pure PRNG cannot 
> change internal state.

Formally it is immutable, see line 36.


More information about the Digitalmars-d mailing list