News for hackers. Stuff that matters.
Re:The random number generator of DOOM by kaesve on Wednesday July 01, 2015 @04:23AM (#9810595)
in this case the & is not to point to an adress, but a bitwise and. 0xff is hexadecimal for 255, or 00000000000000000000000011111111 (assuming 32-bit integers), so the logical and masks out the lower 8 bits of (prndindex+1), effectively doing modulo 255.

There are no comments on this comment yet.