import random


def random_bytes(size=1024):
    """
    Return size randomly selected bytes as a string.
    """
    return ''.join([chr(random.randint(0, 255))
                    for i in range(size)])