import random


def randBytes(b: int = 2) -> bytes:
    """
    Get a random number of bytes
    :param b: number of bytes generate
    :return: random number of bytes requested
    """
    return bytes([random.getrandbits(8) for _ in range(b)])