def droplet(self): self.updateSeed() chunk_nums = randChunkNums(self.num_chunks) data = None for num in chunk_nums: if data is None: data = self.chunk(num) else: data = xor(data, self.chunk(num)) return Droplet(data, self.seed, self.num_chunks)
def chunkNums(self): random.seed(self.seed) return randChunkNums(self.num_chunks)