+ // $mod is now mostly a small number so try to "improve" it
+ //* NOISY-DEBUG: */ print 'mod[' . gettype($mod) . ']=' . $mod . ' - BEFORE!' . PHP_EOL;
+ $mod = (int) round(sqrt($mod * ($part1 + $part2 + $mod ^ 7) / 3));
+ //* NOISY-DEBUG: */ print 'mod[' . gettype($mod) . ']=' . $mod . ' - AFTER!' . PHP_EOL;
+
+ // Make sure it is valid
+ assert($mod >= 0);
+ assert($mod <= 255);
+
+ // "Invert" the result against 255 as zeros are not good for later calculations