def fake_urandom(n):
 return ''.join((chr(random.randint(0, 255)) for _ in xrange(n)))

def fake_urandom ( n ) : return '' . join ( ( chr ( random . randint ( 0 , 255 ) ) for _ in xrange ( n ) ) )
fake version of os .