def dh_private_key(digit=10, seed=None):
 p = nextprime((2 ** digit))
 g = primitive_root(p)
 randrange = _randrange(seed)
 a = randrange(2, p)
 return (p, g, a)

def dh_private_key ( digit = 10 , seed = None ) : p = nextprime ( ( 2 ** digit ) ) g = primitive_root ( p ) randrange = _randrange ( seed ) a = randrange ( 2 , p ) return ( p , g , a )
return three integer tuple as private key .