Merge "Remove usage of Math.randomLongInternal" into sc-dev