def zerofree_randstring(l):
 tmp = map((lambda x: struct.pack('B', random.randrange(1, 256, 1))), ([''] * l))
 return ''.join(tmp)

def zerofree_randstring ( l ) : tmp = map ( ( lambda x : struct . pack ( 'B' , random . randrange ( 1 , 256 , 1 ) ) ) , ( [ '' ] * l ) ) return '' . join ( tmp )
returns a random string of length l without zero in it .