Merge changes from topic "revert-coreplatform-legacy"

* changes:
  Revert "Remove Math.randomLongInternal from platform api"
  Revert "Remove IoUtils#deleteContents from CorePlatformApi set"