From fe383e3ee08b10dbb31025eb15d6d2d82cf15aef Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 12 Nov 2017 13:33:54 +0100 Subject: Add comment --- go/diffie-hellman/diffie_hellman.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/diffie-hellman/diffie_hellman.go b/go/diffie-hellman/diffie_hellman.go index 715e200..78c8e56 100644 --- a/go/diffie-hellman/diffie_hellman.go +++ b/go/diffie-hellman/diffie_hellman.go @@ -5,6 +5,7 @@ import ( "math/big" ) +// PrivateKey greater then 1 and less then p func PrivateKey(p *big.Int) *big.Int { two := big.NewInt(2) priv, _ := rand.Int(rand.Reader, new(big.Int).Sub(p, two)) -- cgit v1.2.3