A strongly pure PRNG

deadalnix deadalnix at gmail.com
Tue Jan 7 17:13:11 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.

Without this, http://dilbert.com/strips/comic/2001-10-25/


More information about the Digitalmars-d mailing list