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

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