Of the use of unpredictableSeed

Nick Sabalausky (Abscissa) via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 26 20:51:37 PST 2017


On 02/26/2017 01:23 PM, cym13 wrote:
>
> [1]: https://cym13.github.io/article/unpredictableSeed.html

Good enlightening article. And Veles looks cool, never heard of it before.

One detail:

auto copyState(uint origin) {
     for (uint i=1; i>0; i++) {
         if (origin == Random(i).front)
             return origin;
     }
     return 0;
}

Shouldn't "return origin;" be "return i;"?



More information about the Digitalmars-d mailing list