def _MakeTile(repeated_string):
    """Make exactly 1Mb tile of the repeated string."""
    total_size = 1024 * 1024
    tile = repeated_string * (total_size // len(repeated_string))
    tile += repeated_string[:total_size % len(repeated_string)]
    return tile
