call it like funct(data) ?
                  
                  
                  
                  
                  
                  def flipmask(p):
                  
                  
                          return functools.reduce(lambda a, b: (a << 1) | int(random.random() < p), [0]*8)
                  
                  
                  
                  
                  
                      data_stream = bytes(b ^ flipmask(0.08) for b in bytearray(content))
                  
                  
                  how I want to call it
                  
                  
                  def flipmask(data):
                  
                  
                      [....]
                  
                  
                
Post your code to a pastebin
Обсуждают сегодня