def random_data(self, bytes):
        if self.__random_data is None:
            self.__random_data = self._random_bytes(bytes)
            return self.__random_data
        elif bytes == len(self.__random_data):
            return self.__random_data
        elif bytes < len(self.__random_data):
            return self.__random_data[:bytes]
        else:
            self.__random_data += self._random_bytes(bytes - len(self.__random_data))
            return self.__random_data
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pycrypto-2.6.1/pct-speedtest.py/Benchmark.random_data/original