Fix getRandomlyCollectedSwiftHashes() problems.