3 ms·
> so that the multiplication and addition can be done on a signed 32-bit integer without overflow Except they can't: any seed in the range 230888 thru 233279 w
by a1369209993 4y ago
> so that the multiplication and addition can be done on a signed 32-bit integer without overflow
Except they can't: any seed in the range 230888 thru 233279 will produce a signed integer overflow when multiplied by 9301 (eg 9301*230888 = 0x80001608).
- bonzini 4y agoYou're right, that makes no sense. Also a-1 (9300) should not have factors in common with m (233280) but it has a lot...