示例#1
0
    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)
示例#2
0
 def chunkNums(self):
     random.seed(self.seed)
     return randChunkNums(self.num_chunks)
示例#3
0
 def chunkNums(self):
     random.seed(self.seed)
     return randChunkNums(self.num_chunks)