[Issue 18332] rt.util.random.Rand48 remove unnecessary assert
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 30 03:49:39 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18332
--- Comment #1 from Nathan S. <n8sh.secondary at hotmail.com> ---
Strike the comments about popFront(): the mask is necessary.
>popFront() advances rng_state through addition and multiplication so the high 16 bits of the current rng_state never affect the low 48 bits of the next rng_state
The "and addition" is why this statement is false.
--
More information about the Digitalmars-d-bugs
mailing list