'Return random keys of the specified number of bytes.
If this function has been called before with the same number of bytes,
cached keys are used instead of randomly generating new ones.'

def random_keys(self, bytes):

    return self.random_blocks(bytes, (10 ** 5))
