Respawns only landed in part of the square
The respawn_radius game rule defines a square around the spawn point. PlayerSpawnFinder capped both the number of attempts and the range of candidate positions at 1024, so from radius 16 up the candidates only covered the first rows of the square on the Z axis, and with a large radius players always respawned close to the lowest Z value.
Sampling from the whole square
Candidates are now drawn from the whole area of the square, and the cap only applies to the number of attempts. The stride is chosen to be coprime with the area, because the old value of 17 divides some areas, such as 51 by 51, and the index is computed as a long so it cannot overflow an int.